JS/Tooltips

* try to get current domain from Locale when used on the site itself and no other params are given
This commit is contained in:
Sarjuuk
2024-02-29 18:11:22 +01:00
parent be06b1e0cf
commit de2fa3770b
2 changed files with 4 additions and 1 deletions

View File

@@ -356,6 +356,9 @@ if (typeof $WowheadPower == "undefined") {
// domain = url[i0];
domain = url[i0].split(".")[0];
}
else if (typeof window.Locale == 'object') {// aowow - Locale is known, just out of scope...?
domain = window.Locale.current.domain;
}
if (REDIRECTS[domain]) {
domain = REDIRECTS[domain];
@@ -878,4 +881,3 @@ if (typeof $WowheadPower == "undefined") {
init();
}
};

View File

@@ -0,0 +1 @@
UPDATE `aowow_dbversion` SET `sql` = CONCAT(IFNULL(`build`, ''), ' power');