mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
commenting
This commit is contained in:
+4
-4
@@ -21,12 +21,12 @@ if (document.childNodes[1]) {
|
|||||||
init()
|
init()
|
||||||
}
|
}
|
||||||
|
|
||||||
import * as plugins from "@/plugins"
|
import * as plugins from "@/plugins" // Import the plugins from folder
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
const hasSEQTATitle = document.title.includes("SEQTA Learn")
|
const hasSEQTATitle = document.title.includes("SEQTA Learn")
|
||||||
|
|
||||||
if (hasSEQTAText && hasSEQTATitle && !IsSEQTAPage) {
|
if (hasSEQTAText && hasSEQTATitle && !IsSEQTAPage) { // Verify we are on a SEQTA page
|
||||||
IsSEQTAPage = true
|
IsSEQTAPage = true
|
||||||
console.info("[BetterSEQTA+] Verified SEQTA Page")
|
console.info("[BetterSEQTA+] Verified SEQTA Page")
|
||||||
|
|
||||||
@@ -35,14 +35,14 @@ async function init() {
|
|||||||
document.head.appendChild(documentLoadStyle)
|
document.head.appendChild(documentLoadStyle)
|
||||||
|
|
||||||
const icon = document.querySelector('link[rel*="icon"]')! as HTMLLinkElement
|
const icon = document.querySelector('link[rel*="icon"]')! as HTMLLinkElement
|
||||||
icon.href = icon48
|
icon.href = icon48 // Change the icon
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// wait until settingsState has been loaded from storage
|
// wait until settingsState has been loaded from storage
|
||||||
await initializeSettingsState()
|
await initializeSettingsState()
|
||||||
|
|
||||||
if (settingsState.onoff) {
|
if (settingsState.onoff) {
|
||||||
plugins.Monofile()
|
plugins.Monofile() // Init plugins
|
||||||
}
|
}
|
||||||
console.info(
|
console.info(
|
||||||
"[BetterSEQTA+] Successfully initalised BetterSEQTA+, starting to load assets.",
|
"[BetterSEQTA+] Successfully initalised BetterSEQTA+, starting to load assets.",
|
||||||
|
|||||||
Reference in New Issue
Block a user