g4.4
This commit is contained in:
1 parent
a994562779
commit
e8dc566824
3 files changed
+5
-1
No files matched your search
@@ -1,3 +1,6 @@
|
||||
const debug = false;
|
||||
|
||||
|
||||
const couchdb_username = "admin";
|
||||
const couchdb_password = "admin";
|
||||
|
||||
|
||||
+1
-1
@@ -351,7 +351,7 @@ function form1(string) {
|
||||
async function getUserData(couchDB) {
|
||||
let username = getURLArgsMap()["user"];
|
||||
if (!username) {
|
||||
if (typeof (debug_username) == "string") {
|
||||
if (debug && typeof (debug_username) == "string") {
|
||||
username = debug_username;
|
||||
} else {
|
||||
return null;
|
||||
|
||||
@@ -191,6 +191,7 @@
|
||||
<script>
|
||||
const couchDB = new CouchDB();
|
||||
setUserData(couchDB).then((val) => {
|
||||
if (!val) return;
|
||||
setCourseView();
|
||||
setLevelProgress(userData.xp);
|
||||
setLevel(userData.level);
|
||||
|
||||
Reference in new issue
Block a user