Use a '===' compare instead of startsWith.

This commit is contained in:
Nils Asmussen 2016-08-20 16:16:18 +02:00
parent 21b2f587d5
commit 22ab61701b

View File

@ -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
}