260702_230205
This commit is contained in:
parent
c88e342990
commit
857188896e
@ -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",
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user