Tooltip + dev=true
This commit is contained in:
7
devTrue/README.md
Normal file
7
devTrue/README.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# DEV=TRUE #
|
||||
It's a short code to make your code safe to check on production, without people visiting the site seeing it
|
||||
|
||||
## USE ##
|
||||
Put code, or function call inside dev=true code, and then you can check it by adding ?dev=true to your url.(&dev=true if there already is ? in your url)
|
||||
|
||||
Created by • **[IdoMods](https://idomods.pl/)** • 2025
|
||||
9
devTrue/dev.js
Normal file
9
devTrue/dev.js
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
const queryString = window.location.search;
|
||||
const urlParams = new URLSearchParams(queryString);
|
||||
const dev = urlParams.get('dev')
|
||||
if(dev == 'true'){
|
||||
// INSERT YOUR CODE HERE
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user