Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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) {
|