From 22ab61701ba9d89aa541bb1f1514e5e68fca09e6 Mon Sep 17 00:00:00 2001 From: Nils Asmussen Date: Sat, 20 Aug 2016 16:16:18 +0200 Subject: [PATCH] Use a '===' compare instead of startsWith. --- src/scripts/lychee.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/lychee.js b/src/scripts/lychee.js index 46ec85b..6ce96c7 100644 --- a/src/scripts/lychee.js +++ b/src/scripts/lychee.js @@ -425,7 +425,7 @@ lychee.html = function(literalSections, ...substs) { lychee.error = function(errorThrown, params, data) { // in this case, our cookie has probably expired - if (data.startsWith('Error: Function not available for guests.')) { + if (data==='Error: Function not available for guests.') { lychee.restart() return }