-
Notifications
You must be signed in to change notification settings - Fork 1
/
token.js
22 lines (20 loc) · 706 Bytes
/
token.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 💧 Enter Your Raindrop Token here 👇 //
let raindropToken = "XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX";
let token;
if (raindropToken == "XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX") {
if (
localStorage.token == "null" ||
localStorage.token == "undefined" ||
localStorage.token == undefined
) {
const localToken = prompt(
"🏠 Welcome to Raindrop HomePage\n\nplease enter your test-token\nif you dont know how to do it, please visit the url below\n\nℹ️ https://github.com/Virgile-fr/Raindrop-HomePage"
);
localStorage.setItem("token", localToken);
token = localStorage.token;
} else {
token = localStorage.token;
}
} else {
token = raindropToken;
}