From f1e901b67fead474c2f77da9694ccb3dff3aa8ee Mon Sep 17 00:00:00 2001 From: Kyle <41976328+ImKyle4815@users.noreply.github.com> Date: Sun, 23 Dec 2018 11:59:23 -0800 Subject: [PATCH] Update main.js --- data/scripts/main.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/data/scripts/main.js b/data/scripts/main.js index cc6c83db..a8ea28ac 100644 --- a/data/scripts/main.js +++ b/data/scripts/main.js @@ -21,9 +21,9 @@ if(navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) } else { var isMobile = false } -var isChrome = navigator.userAgent.indexOf('Chrome') > -1 -var isExplorer = navigator.userAgent.indexOf('MSIE') > -1 -var isFirefox = navigator.userAgent.indexOf('Firefox') > -1 +var isChrome = navigator.userAgent.indexOf("Chrome") > -1 +var isExplorer = navigator.userAgent.indexOf("MSIE") > -1 +var isFirefox = navigator.userAgent.indexOf("Firefox") > -1 var isSafari = navigator.userAgent.indexOf("Safari") > -1 if (isChrome == true && isSafari == true) { isSafari = false @@ -1036,13 +1036,13 @@ function getCookie(cookieName) { } function checkCookies() { if (getCookie("visited") != "true") { - setCookie("visited", "true") if (isMobile == true) { - alert("Thanks for using Card Conjurer! Unfortunately some users have been experiencing difficulty on mobile devices when uploading pictures they took on that mobile device. An easy solution is to quickly edit that picture by cropping it slightly. Otherwise, images from URLs and other sources should work normally.") + alert("Thanks for using Card Conjurer! Unfortunately some users have been experiencing difficulty on mobile devices when uploading pictures they took on that mobile device. An easy solution is to quickly edit that picture by cropping it slightly. Otherwise, images from URLs and other sources should work normally. (cookie result: " + getCookie("visited") + ")") } + setCookie("visited", "true") } else { console.log("Welcome back to Card Conjurer!") } } -checkCookies() \ No newline at end of file +checkCookies()