index.html 706 B

1234567891011121314151617181920212223
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>Default Popup Title</title>
  7. <meta name="manifest.type" content="browser_action" />
  8. </head>
  9. <body>
  10. <div id="app"></div>
  11. <script>
  12. let timer = null
  13. chrome.runtime.onMessage.addListener(
  14. async (message, sender, sendResponse) => {
  15. // The callback for runtime.onMessage must return falsy if we're not sending a response
  16. if (message.type === 'updateSidePanel') sendResponse(111)
  17. return
  18. }
  19. )
  20. </script>
  21. <script type="module" src="./main.ts"></script>
  22. </body>
  23. </html>