Localization fix and layer identifiers

This commit is contained in:
Alexei Stukov 2017-05-04 18:47:16 +03:00 committed by GitHub
parent b933703f4f
commit 327c08fd93
1 changed files with 11 additions and 1 deletions

View File

@ -2025,7 +2025,17 @@ SettingsPanel.prototype.inject = function(mutation) {
SettingsPanel.prototype.injectNew = function(mutation) {
let self = this;
if(!mutation.target.classList.contains("layers")) return;
if(!$(".ui-tab-bar-header:contains('App Settings')").length) return;
if($(".guild-settings-base-section").length) {
try {
mutation.addedNodes[0].setAttribute('layer-id', 'server-settings');
}catch(err) {}
}
if(!$(".user-settings-account").length) return;
try {
mutation.addedNodes[0].setAttribute('layer-id', 'user-settings');
}catch(err) {}
// if(!$(".ui-tab-bar-header:contains('App Settings')").length) return;
if($("#bd-settings-sidebar").length) return;
self.v2SettingsPanel.renderSidebar();
/*$(".ui-tab-bar-item").off("click.bd").on("click.bd", e => {