File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 2525 < script src ="/pwv.js "> </ script >
2626
2727 < script >
28- document . addEventListener ( "contextmenu" , ( event ) => {
29- // event.preventDefault();
30- } ) ;
28+ if ( ! window . hasPWV ) {
29+ document . addEventListener ( "contextmenu" , ( event ) => {
30+ event . preventDefault ( ) ;
31+ } ) ;
32+ }
3133 </ script >
3234
3335 < style >
Original file line number Diff line number Diff line change 1+ // window.hasPWV = true;
2+ // window.pywebview = {
3+ // api: {
4+ // close: (async () => {}),
5+ // toggle_fullscreen: (async () => {}),
6+ // save_file: (async () => {}),
7+ // load_file: (async () => {}),
8+ // load_project_id: (async () => ""),
9+ // backup_project: (async () => {}),
10+ // restore_project: (async () => ""),
11+ // run_project: (async () => {}),
12+ // }
13+ // }
You can’t perform that action at this time.
0 commit comments