mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-05 19:24:39 +00:00
rename sendHomePage function to loadHomePage
This commit is contained in:
+4
-4
@@ -1193,7 +1193,7 @@ async function AddBetterSEQTAElements(toggle: any) {
|
|||||||
const menuCover = document.querySelector('#icon-cover')
|
const menuCover = document.querySelector('#icon-cover')
|
||||||
menuCover!.addEventListener('click', function () {
|
menuCover!.addEventListener('click', function () {
|
||||||
location.href = '../#?page=/home'
|
location.href = '../#?page=/home'
|
||||||
SendHomePage();
|
loadHomePage();
|
||||||
(document!
|
(document!
|
||||||
.getElementById('menu')!
|
.getElementById('menu')!
|
||||||
.firstChild! as HTMLElement).classList.remove('noscroll')
|
.firstChild! as HTMLElement).classList.remove('noscroll')
|
||||||
@@ -1202,7 +1202,7 @@ async function AddBetterSEQTAElements(toggle: any) {
|
|||||||
const homebutton = document.getElementById('homebutton')
|
const homebutton = document.getElementById('homebutton')
|
||||||
homebutton!.addEventListener('click', function () {
|
homebutton!.addEventListener('click', function () {
|
||||||
if (!MenuOptionsOpen) {
|
if (!MenuOptionsOpen) {
|
||||||
SendHomePage()
|
loadHomePage()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -2130,7 +2130,7 @@ function AddCustomShortcutsToPage() {
|
|||||||
result.then(open, onError)
|
result.then(open, onError)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function SendHomePage() {
|
async function loadHomePage() {
|
||||||
// Sends the html data for the home page
|
// Sends the html data for the home page
|
||||||
console.log('[BetterSEQTA] Started Loading Home Page')
|
console.log('[BetterSEQTA] Started Loading Home Page')
|
||||||
document.title = 'Home ― SEQTA Learn'
|
document.title = 'Home ― SEQTA Learn'
|
||||||
@@ -2718,7 +2718,7 @@ function LoadInit() {
|
|||||||
const result = browser.storage.local.get()
|
const result = browser.storage.local.get()
|
||||||
function open (result: any) {
|
function open (result: any) {
|
||||||
if (result.onoff) {
|
if (result.onoff) {
|
||||||
SendHomePage()
|
loadHomePage()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result.then(open, onError)
|
result.then(open, onError)
|
||||||
|
|||||||
Reference in New Issue
Block a user