gitbook-plugin-lock
Advanced tools
Comparing version 0.0.69 to 0.0.70
18
index.js
@@ -40,10 +40,10 @@ | ||
let authToken= window.localStorage.getItem(lockTokenKey) | ||
if (authToken!==isNaN(0)||authToken!==""||authToken!==undefined) { | ||
for (let i in verificationCode) { | ||
if (verificationCode[i]["value"] === authToken) { | ||
return true; | ||
} | ||
} | ||
} | ||
// let authToken= window.localStorage.getItem(lockTokenKey) | ||
// if (authToken!==isNaN(0)||authToken!==""||authToken!==undefined) { | ||
// for (let i in verificationCode) { | ||
// if (verificationCode[i]["value"] === authToken) { | ||
// return true; | ||
// } | ||
// } | ||
// } | ||
@@ -92,3 +92,3 @@ const cla = document.getElementById("book-search-results"); | ||
rm.parentNode.removeChild(rm) | ||
window.localStorage.setItem(lockTokenKey,thisValue) | ||
// window.localStorage.setItem(lockTokenKey,thisValue) | ||
} else { | ||
@@ -95,0 +95,0 @@ alert("验证码不正确!") |
{ | ||
"name": "gitbook-plugin-lock", | ||
"version": "0.0.69", | ||
"version": "0.0.70", | ||
"description": "Gitbook 页面加锁", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
16496