From 843a4053233ebe034c5283beb387d15c7e1f6582 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sat, 10 Apr 2021 04:08:35 +0200 Subject: [PATCH] get settings for current site function --- src/ext/lib/Settings.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ext/lib/Settings.ts b/src/ext/lib/Settings.ts index 31fba80..004eddc 100644 --- a/src/ext/lib/Settings.ts +++ b/src/ext/lib/Settings.ts @@ -380,6 +380,14 @@ class Settings { return this.active.actions; } + getSettingsForSite(site?) { + if (!site) { + site = window.location.hostname; + } + + return this.active.sites[site]; + } + getExtensionMode(site?: string) { if (!site) { site = window.location.hostname;