get settings for current site function

This commit is contained in:
Tamius Han 2021-04-10 04:08:35 +02:00
parent cb548c3a3d
commit 843a405323

View File

@ -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;