mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Fix marketplace injection problems - yay!
This commit is contained in:
parent
b5dc6b791b
commit
f0d668c5c3
1 changed files with 7 additions and 2 deletions
|
@ -235,7 +235,9 @@
|
|||
}
|
||||
|
||||
function injectHiFiCode() {
|
||||
if (confirmAllPurchases) {
|
||||
if (!$('body').hasClass("code-injected") && confirmAllPurchases) {
|
||||
|
||||
$('body').addClass("code-injected");
|
||||
|
||||
maybeAddLogInButton();
|
||||
|
||||
|
@ -260,7 +262,9 @@
|
|||
}
|
||||
|
||||
function injectHiFiItemPageCode() {
|
||||
if (confirmAllPurchases) {
|
||||
if (!$('body').hasClass("code-injected") && confirmAllPurchases) {
|
||||
|
||||
$('body').addClass("code-injected");
|
||||
|
||||
maybeAddLogInButton();
|
||||
|
||||
|
@ -567,4 +571,5 @@
|
|||
|
||||
// Load / unload.
|
||||
window.addEventListener("load", onLoad); // More robust to Web site issues than using $(document).ready().
|
||||
window.addEventListener("page:change", onLoad); // Triggered after Marketplace HTML is changed
|
||||
}());
|
||||
|
|
Loading…
Reference in a new issue