vk init
This commit is contained in:
parent
f5da175d7b
commit
16bbeb5d16
|
|
@ -64,7 +64,6 @@
|
||||||
document.querySelector('canvas');
|
document.querySelector('canvas');
|
||||||
clearInterval(intervalId);
|
clearInterval(intervalId);
|
||||||
resize(document.querySelector('canvas'));
|
resize(document.querySelector('canvas'));
|
||||||
vkBridge.send("VKWebAppInit", {});
|
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
new ResizeObserver(() => {
|
new ResizeObserver(() => {
|
||||||
|
|
@ -83,6 +82,7 @@
|
||||||
canvasObj.style.width = window.screen.width + "px";
|
canvasObj.style.width = window.screen.width + "px";
|
||||||
canvasObj.style.height = window.screen.widheightth + "px";
|
canvasObj.style.height = window.screen.widheightth + "px";
|
||||||
}
|
}
|
||||||
|
vkBridge.send("VKWebAppInit", {});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue