Use a '===' compare instead of startsWith.
This commit is contained in:
parent
21b2f587d5
commit
22ab61701b
@ -425,7 +425,7 @@ lychee.html = function(literalSections, ...substs) {
|
|||||||
lychee.error = function(errorThrown, params, data) {
|
lychee.error = function(errorThrown, params, data) {
|
||||||
|
|
||||||
// in this case, our cookie has probably expired
|
// 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()
|
lychee.restart()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user