Fix ads init
This commit is contained in:
parent
624abf0df4
commit
a46677832b
@ -48,8 +48,7 @@
|
||||
<div id="modrinth-rail-1" />
|
||||
</div>
|
||||
<script>
|
||||
window.__TAURI_INTERNALS__.invoke("plugin:ads|get_ads_personalization", {})
|
||||
.then((personalized) => {
|
||||
function initAds(personalized) {
|
||||
window.tude = window.tude || { cmd: [] };
|
||||
|
||||
tude.cmd.push(function () {
|
||||
@ -64,7 +63,11 @@
|
||||
personalizedAds: personalized ?? true,
|
||||
})
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
window.__TAURI_INTERNALS__.invoke("plugin:ads|get_ads_personalization", {})
|
||||
.then(initAds)
|
||||
.catch(() => initAds(true));
|
||||
|
||||
window.addEventListener(
|
||||
"message",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user