Where is MUFLIX PLAY, I would like to hide when accessed through webview: P
Where is MUFLIX PLAY, I would like to hide when accessed through webview: P
Normally, to detect whether a user is accessing the page in an iframe , with JavaScript, window.top
to check if it is equal to window
current. That is, if window !== window.top
is true
, then the user is in an iframe . Does not that work for you too? And if it's done, for example, in JavaScript:
// Se estiver em um iframe...
if (window !== window.top) {
// Adicionar a class "webview" no body...
document.body.classList.add("webview");
}
... and in CSS:
body.webview {
/* Estilo aqui... */
}