From b025d1655483aa13a29ab5594255460b48143a5a Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 26 Aug 2023 23:20:37 +0200 Subject: error handling --- resources/js/memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/js/memory.js') 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; -- cgit v1.2.3