This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const _log = console.log; | |
| global.console.warn = function() { | |
| _log.apply(null, arguments); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| root /usr/share/nginx/html; | |
| gzip on; | |
| gzip_types text/css application/javascript application/json image/svg+xml; | |
| gzip_comp_level 9; | |
| etag on; | |
| location / { | |
| try_files $uri $uri/ /index.html; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| location ~* (serviceworker\.js)$ { | |
| add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0'; | |
| expires off; | |
| proxy_no_cache 1; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Popup Example</title> | |
| </head> | |
| <body> | |
| <script> | |
| function popupCallback(str){ | |
| alert("This is callback:" + str); | |
| } |