prozorov commited on
Commit
6c8f16d
·
verified ·
1 Parent(s): d1de89b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ with open('scripts.js', 'r', encoding='utf-8') as file:
30
  const observer = new MutationObserver((mutationsList) => {
31
  for (const mutation of mutationsList) {
32
  if (mutation.type === 'childList' || mutation.type === 'characterData') {
33
- handleCheatsheetsJsonChange();
34
  }
35
  }
36
  });
@@ -41,7 +41,7 @@ with open('scripts.js', 'r', encoding='utf-8') as file:
41
  subtree: true,
42
  });
43
 
44
- handleCheatsheetsJsonChange();
45
  } else {
46
  const observer = new MutationObserver((mutationsList, observer) => {
47
  for (const mutation of mutationsList) {
 
30
  const observer = new MutationObserver((mutationsList) => {
31
  for (const mutation of mutationsList) {
32
  if (mutation.type === 'childList' || mutation.type === 'characterData') {
33
+ handleCheatsheetsJsonChange(cheatsheetsJsonElement);
34
  }
35
  }
36
  });
 
41
  subtree: true,
42
  });
43
 
44
+ handleCheatsheetsJsonChange(cheatsheetsJsonElement);
45
  } else {
46
  const observer = new MutationObserver((mutationsList, observer) => {
47
  for (const mutation of mutationsList) {