We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4307353 commit e0cde91Copy full SHA for e0cde91
2 files changed
index.html
@@ -25,9 +25,11 @@
25
<script src="/pwv.js"></script>
26
27
<script>
28
- document.addEventListener("contextmenu", (event) => {
29
- // event.preventDefault();
30
- });
+ if (!window.hasPWV) {
+ document.addEventListener("contextmenu", (event) => {
+ event.preventDefault();
31
+ });
32
+ }
33
</script>
34
35
<style>
public/pwv.js
@@ -0,0 +1,13 @@
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
0 commit comments