Add better UI for warnings allowing you to accept without chatting

This commit is contained in:
Ajay
2022-07-20 18:48:53 -04:00
parent 31cc4b4960
commit 2cc1dcc6fd
10 changed files with 127 additions and 86 deletions

View File

@@ -8,6 +8,7 @@ import { Registration } from "./types";
window.SB = Config;
import Utils from "./utils";
import { GenericUtils } from "./utils/genericUtils";
const utils = new Utils({
registerFirefoxContentScript,
unregisterFirefoxContentScript
@@ -205,7 +206,7 @@ async function asyncRequestToServer(type: string, address: string, data = {}) {
async function sendRequestToCustomServer(type: string, url: string, data = {}) {
// If GET, convert JSON to parameters
if (type.toLowerCase() === "get") {
url = utils.objectToURI(url, data, true);
url = GenericUtils.objectToURI(url, data, true);
data = null;
}