drag and drop view of any file to app window is prevented to open in app

This commit is contained in:
satindergrewal 2017-12-21 03:27:18 +13:00
parent c6d547fd86
commit 3aaea7d60f
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ $(window).resize(function() {
})
$(document).ready(function() {
document.addEventListener('drop', function(e) {
e.preventDefault();
e.stopPropagation();
});
document.addEventListener('dragover', function(e) {
e.preventDefault();
e.stopPropagation();
});
webview.addEventListener('dragover', function(e) {
e.preventDefault();
});
$('.loginbody').css('height',$(window).height())
var mmstatus = ShepherdIPC({"command":"mmstatus"});
if (mmstatus !== 'closed') {