mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Setting variables to prod variables
This commit is contained in:
@@ -110,7 +110,7 @@
|
|||||||
const logEnabled = true
|
const logEnabled = true
|
||||||
const showErrors = true
|
const showErrors = true
|
||||||
// forcing pages for testing. unless you test, do not set these to true!
|
// forcing pages for testing. unless you test, do not set these to true!
|
||||||
setVal('ISDEVEL', true)
|
setVal('ISDEVEL', false)
|
||||||
// only one of these should be true for testing
|
// only one of these should be true for testing
|
||||||
const forceTestPage = false
|
const forceTestPage = false
|
||||||
const forceResultPage = false
|
const forceResultPage = false
|
||||||
@@ -144,7 +144,9 @@
|
|||||||
apiAdress = 'http://localhost:8080/'
|
apiAdress = 'http://localhost:8080/'
|
||||||
}
|
}
|
||||||
|
|
||||||
const currUrl = 'https://elearning.uni-obuda.hu/' // location.href TODO
|
const currUrl = location.href.includes('file:///')
|
||||||
|
? 'https://elearning.uni-obuda.hu/'
|
||||||
|
: location.href
|
||||||
|
|
||||||
// : Localisation {{{
|
// : Localisation {{{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user