You've already forked AstralRinth
forked from didirus/AstralRinth
Fix ad init not working on no tauri invoke
This commit is contained in:
@@ -73,17 +73,26 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const hash = getCookie("modrinth-app-token");
|
const hash = getCookie("modrinth-app-token");
|
||||||
console.log(hash)
|
console.log(hash);
|
||||||
tude.setIdProfile({
|
tude.setIdProfile({
|
||||||
e: hash,
|
e: hash,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.__TAURI_INTERNALS__
|
try {
|
||||||
.invoke("plugin:ads|get_ads_personalization", {})
|
if (window.__TAURI_INTERNALS__) {
|
||||||
.then(initAds)
|
window.__TAURI_INTERNALS__
|
||||||
.catch(() => initAds(true));
|
.invoke("plugin:ads|get_ads_personalization", {})
|
||||||
|
.then(initAds)
|
||||||
|
.catch(() => initAds(true));
|
||||||
|
} else {
|
||||||
|
initAds(true);
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
initAds(true);
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
|
||||||
window.addEventListener(
|
window.addEventListener(
|
||||||
"message",
|
"message",
|
||||||
|
|||||||
Reference in New Issue
Block a user