Spaces:
Running
Running
vlff李飞飞
commited on
Commit
•
d8c3545
1
Parent(s):
eb10065
优化chrome 插件
Browse files
chrome_agent/options/options.js
CHANGED
@@ -18,7 +18,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|
18 |
const accessToken = accessTokenInput.value.trim();
|
19 |
|
20 |
// Check if the Access token is not empty
|
21 |
-
if (accessToken !== '' && accessToken.length >
|
22 |
// Save the Access token to local storage
|
23 |
chrome.storage.local.set({ access_token: accessToken }, function () {
|
24 |
// Update the status message
|
|
|
18 |
const accessToken = accessTokenInput.value.trim();
|
19 |
|
20 |
// Check if the Access token is not empty
|
21 |
+
if (accessToken !== '' && accessToken.length > 10 && accessToken.length < 100) {
|
22 |
// Save the Access token to local storage
|
23 |
chrome.storage.local.set({ access_token: accessToken }, function () {
|
24 |
// Update the status message
|