4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 13:16:37 +00:00

Revert frame parent postMessage.

This commit is contained in:
Buster Neece 2023-12-18 13:03:39 -06:00
parent 7af8add848
commit edfde0ddf4
No known key found for this signature in database

View File

@ -37,21 +37,6 @@ ready(() => {
const toast = new bootstrap.Toast(el);
toast.show();
});
// If in a frame, notify the parent frame of the frame dimensions.
if (window.self !== window.top) {
window.top.postMessage({
height: document.body.scrollHeight,
width: document.body.scrollWidth
}, "*");
document.addEventListener("vue-ready", () => {
window.top.postMessage({
height: document.body.scrollHeight,
width: document.body.scrollWidth
}, "*");
});
}
});
export default bootstrap;