mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Reset development values, fixed error logging
This commit is contained in:
parent
646815ad97
commit
36bfe16e52
1 changed files with 3 additions and 4 deletions
7
main.js
7
main.js
|
@ -31,11 +31,11 @@ var serverAdress = "https://questionmining.tk/";
|
||||||
|
|
||||||
// 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!
|
||||||
// only one of these should be true for testing
|
// only one of these should be true for testing
|
||||||
const forceTestPage = true; // TODO: set to false
|
const forceTestPage = false;
|
||||||
const forceResultPage = false;
|
const forceResultPage = false;
|
||||||
const forceDefaultPage = false;
|
const forceDefaultPage = false;
|
||||||
const logElementGetting = false;
|
const logElementGetting = false;
|
||||||
const log = true; // TODO: this is false
|
const log = false;
|
||||||
|
|
||||||
var motdShowCount = 3;
|
var motdShowCount = 3;
|
||||||
var motd = "";
|
var motd = "";
|
||||||
|
@ -230,7 +230,6 @@ class QuestionDB {
|
||||||
//: Main function {{{
|
//: Main function {{{
|
||||||
function Main() {
|
function Main() {
|
||||||
'use strict';
|
'use strict';
|
||||||
console.clear(); // TODO: remove dis
|
|
||||||
Init(function(count, subjCount) {
|
Init(function(count, subjCount) {
|
||||||
var url = location.href;
|
var url = location.href;
|
||||||
try {
|
try {
|
||||||
|
@ -1393,7 +1392,7 @@ function Log(value) {
|
||||||
console.log(value);
|
console.log(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Error(e, msg){
|
function Exception(e, msg){
|
||||||
Log("------------------------------------------");
|
Log("------------------------------------------");
|
||||||
Log(msg);
|
Log(msg);
|
||||||
Log(e.message);
|
Log(e.message);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue