index.html 686 B

1234567891011121314151617181920212223
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <link rel="icon" type="image/svg+xml" href="/vite.svg" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>h5sdk</title>
  8. <script>
  9. (function() {
  10. const params = new URLSearchParams(window.location.search);
  11. if (params.get('is_native') === 'true') {
  12. const script = document.createElement('script');
  13. script.src = '/native-sdk.js';
  14. document.head.appendChild(script);
  15. }
  16. })();
  17. </script>
  18. </head>
  19. <body>
  20. <div id="root"></div>
  21. <script type="module" src="/src/main.tsx"></script>
  22. </body>
  23. </html>