Init
This commit is contained in:
commit
9e38aad292
11 changed files with 402 additions and 0 deletions
19
functions/init.js
Normal file
19
functions/init.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
// Init
|
||||
/// Toggles
|
||||
if (localStorage.getItem('enable-search') === null) {
|
||||
localStorage.setItem('enable-search', true)
|
||||
}
|
||||
if (localStorage.getItem('enable-top-sites') === null) {
|
||||
localStorage.setItem('enable-top-sites', true)
|
||||
}
|
||||
if (localStorage.getItem('enable-clock') === null) {
|
||||
localStorage.setItem('enable-clock', true)
|
||||
}
|
||||
if (localStorage.getItem('enable-wallpaper-credits') === null) {
|
||||
localStorage.setItem('enable-wallpaper-credits', true)
|
||||
}
|
||||
|
||||
/// Search Engine
|
||||
if (localStorage.getItem('search-engine') === null) {
|
||||
localStorage.setItem('search-engine', "https://duckduckgo.com/?t=h_&q=")
|
||||
}
|
Reference in a new issue