Created
March 23, 2018 17:42
-
-
Save thangman22/09ff1714a783400800a5a166cb6fa106 to your computer and use it in GitHub Desktop.
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
| <script> | |
| // เอาทั้งหมดนี่ไปใส่ใน Footer.php ของ theme | |
| if (‘serviceWorker’ in navigator) { | |
| window.addEventListener(‘load’, () => { | |
| navigator.serviceWorker.register(‘/sw.js’); | |
| }); | |
| } | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment