aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/options.ts
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-11-08 16:07:59 -0500
committerAjay <[email protected]>2023-11-08 16:07:59 -0500
commite722ded58a928989bb583ae266acf765c129592c (patch)
tree28d2dea746c1b764737775564e65ce10b01ef3d4 /src/options.ts
parent6d37180d005f8f1c7691e0567ea4802425ca7569 (diff)
downloadSponsorBlock-e722ded58a928989bb583ae266acf765c129592c.tar.gz
SponsorBlock-e722ded58a928989bb583ae266acf765c129592c.zip
Add dearrow promo based on title and remove old one
Also refactor requests out to seperate file
Diffstat (limited to 'src/options.ts')
-rw-r--r--src/options.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.ts b/src/options.ts
index 8acdd86e..6b088538 100644
--- a/src/options.ts
+++ b/src/options.ts
@@ -18,6 +18,7 @@ import { StorageChangesObject } from "../maze-utils/src/config";
import { getHash } from "../maze-utils/src/hash";
import { isFirefoxOrSafari } from "../maze-utils/src";
import { isDeArrowInstalled } from "./utils/crossExtension";
+import { asyncRequestToServer } from "./utils/requests";
const utils = new Utils();
let embed = false;
@@ -567,7 +568,7 @@ function activatePrivateTextChange(element: HTMLElement) {
switch (option) {
case "userID":
if (Config.config[option]) {
- utils.asyncRequestToServer("GET", "/api/userInfo", {
+ asyncRequestToServer("GET", "/api/userInfo", {
publicUserID: getHash(Config.config[option]),
values: ["warnings", "banned"]
}).then((result) => {