get settings for current site function
This commit is contained in:
parent
cb548c3a3d
commit
843a405323
@ -380,6 +380,14 @@ class Settings {
|
|||||||
return this.active.actions;
|
return this.active.actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getSettingsForSite(site?) {
|
||||||
|
if (!site) {
|
||||||
|
site = window.location.hostname;
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.active.sites[site];
|
||||||
|
}
|
||||||
|
|
||||||
getExtensionMode(site?: string) {
|
getExtensionMode(site?: string) {
|
||||||
if (!site) {
|
if (!site) {
|
||||||
site = window.location.hostname;
|
site = window.location.hostname;
|
||||||
|
Loading…
Reference in New Issue
Block a user