260702_230205

This commit is contained in:
Maciej J. Bowszys 2026-07-02 23:02:05 +02:00
parent c88e342990
commit 857188896e
2 changed files with 3 additions and 4 deletions

View File

@ -24,8 +24,7 @@
"share_target": { "share_target": {
"action": "/film/parse_msg/", "action": "/film/parse_msg/",
"method": "POST", "method": "GET",
"enctype": "application/x-www-form-urlencoded",
"params": { "params": {
"title": "title", "title": "title",
"text": "text", "text": "text",

View File

@ -1,11 +1,11 @@
var installPromptEvnt = null; var installPromptEvnt = null;
window.onload = () => { window.onload = () => {
if ('serviceWorker' in navigator) { /*if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/empty_sw.js') navigator.serviceWorker.register('/empty_sw.js')
.then((reg) => console.log('SW registered:', reg.scope)) .then((reg) => console.log('SW registered:', reg.scope))
.catch((err) => console.error('SW registration failed:', err)); .catch((err) => console.error('SW registration failed:', err));
} }*/
window.addEventListener("beforeinstallprompt", (e) => { window.addEventListener("beforeinstallprompt", (e) => {
installPromptEvnt = e; installPromptEvnt = e;