mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Automatically assuming small player if in iframe
This commit is contained in:
@@ -354,6 +354,14 @@ function contextListener(that, event) {
|
||||
}
|
||||
}
|
||||
|
||||
function inIframe () {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
function mouseContext(left, top) {
|
||||
var moveFunction = function( event ) {
|
||||
if(event.pageX < left - 60 || event.pageX > left + document.querySelector(".context-menu-root").offsetWidth + 60 ||
|
||||
|
||||
Reference in New Issue
Block a user