summaryrefslogtreecommitdiff
path: root/resources/js/memory.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-26 23:20:37 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-26 23:20:37 +0200
commitb025d1655483aa13a29ab5594255460b48143a5a (patch)
tree1421476a3d0e7938dc1a86f56be800917caa07e1 /resources/js/memory.js
parent36a5d5862c3744f899fe6a5712f81171af144795 (diff)
error handling
Diffstat (limited to 'resources/js/memory.js')
-rw-r--r--resources/js/memory.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/js/memory.js b/resources/js/memory.js
index 6450136..1511c25 100644
--- a/resources/js/memory.js
+++ b/resources/js/memory.js
@@ -213,7 +213,7 @@ const Memory = {
Memory.state.rivalMonster = loadedState.rivalMonster;
Memory.state.activeTechnique = await loadTechnique(loadedState.activeTechnique);
- if (Memory.state.activeBall instanceof String) { // backwards compat: TODO: remove check later
+ if (typeof loadedState.activeBall === 'string') { // backwards compat: TODO: remove check later
Memory.state.activeBall = loadedState.activeBall;
} else {
Memory.state.activeBall = loadedState.activeBall && loadedState.activeBall.slug;