-
Notifications
You must be signed in to change notification settings - Fork 368
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Telegram Application
Telegram for Android
Describe the Bug
Calling miniApp.mountSync() also does mount the themeParams, making themeParams.isMounted() to be true, so codes like this will fail:
To Reproduce
if (miniApp.mountSync.isAvailable() && !miniApp.isMounted()) {
console.log("Bind Mini App");
miniApp.mountSync();
bindMiniAppCssVars();
}
if (themeParams.mountSync.isAvailable() && !themeParams.isMounted()) {
console.log("Bind Theme");
themeParams.mountSync();
bindThemeParamsCssVars();
}
This is not the case for viewport.mount(), these should be documented somewhere to not find it by accident or bug.
Expected Behavior
if themeParams is being mounted as a part of miniApp, then why separate them? if they need to be separate, their functinalities and mounting should be separate too.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working