From 909e164cfb426df66a555b4df8b8c72663f84e97 Mon Sep 17 00:00:00 2001 From: Prakhar Jain Date: Tue, 21 Mar 2023 17:33:29 +0530 Subject: [PATCH] fixed whatsapp event --- js/OverworldEvent.js | 3 ++- js/walls.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/js/OverworldEvent.js b/js/OverworldEvent.js index f192937..cd3f0c6 100644 --- a/js/OverworldEvent.js +++ b/js/OverworldEvent.js @@ -75,7 +75,8 @@ class OverworldEvent { } redirectPerson(resolve) { - let newTab = this.event.newTab; // NOT WORKING. Always opening new tab + let link = this.event.link; + let newTab = this.event.newTab || false; // NOT WORKING. Always opening new tab if(newTab) { window.open(link, '_blank'); } else { diff --git a/js/walls.js b/js/walls.js index c41c702..229dac4 100644 --- a/js/walls.js +++ b/js/walls.js @@ -565,6 +565,7 @@ const WALLS = { [utils.asGridCoord(-4,32)]: true, [utils.asGridCoord(0,30)]: true, + // these are the whatsapp tiles [utils.asGridCoord(45,32)]: true, [utils.asGridCoord(46,32)]: true, };