From 94037dda310142c1d76af5a8e5b2e55b225ae761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Fri, 22 May 2020 23:32:17 +0200 Subject: [PATCH] MAPG-53 check if Core.googleLink is not null before trying to modify it --- public/static/js/mapguesser.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/static/js/mapguesser.js b/public/static/js/mapguesser.js index 23d0550..31a585a 100644 --- a/public/static/js/mapguesser.js +++ b/public/static/js/mapguesser.js @@ -298,8 +298,10 @@ } setTimeout(function () { - Core.googleLink.title = 'Google Maps' - Core.googleLink.href = 'https://maps.google.com/maps' + if (Core.googleLink) { + Core.googleLink.title = 'Google Maps'; + Core.googleLink.href = 'https://maps.google.com/maps'; + } }, 1); },