Update: 在线版阻止浏览器默认右键菜单
This commit is contained in:
@@ -33,6 +33,7 @@ const { PythonShell } = Electron;
|
||||
|
||||
Loader.init = () => {
|
||||
$('body').append(XML.TEMPLATE_STR['INTERFACE']);
|
||||
$('body').on('contextmenu', (e) => e.preventDefault());
|
||||
if (goog.isElectron) {
|
||||
PythonShell.init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user