index.ejs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  5. <meta name="robots" content="NONE,NOARCHIVE" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <title><%= htmlWebpackPlugin.options.title || 'Sentry Dev'%></title>
  8. <script>
  9. function __sentryMark(name) {
  10. if (!window.performance || typeof window.performance.mark !== 'function') { return; }
  11. window.performance.mark(name);
  12. }
  13. __sentryMark('head-start');
  14. </script>
  15. </head>
  16. <body>
  17. <% if (htmlWebpackPlugin.options.unsupportedBrowser) { %>
  18. <style>.unsupported-browser { display: none; }</style>
  19. <div class="unsupported-browser">
  20. Sorry, your browser is not supported. Please upgrade to
  21. the latest version or switch your browser to use this site.
  22. See <a href="http://outdatedbrowser.com/">outdatedbrowser.com</a>
  23. for options.
  24. </div>
  25. <% } %>
  26. <div id="blk_router">
  27. <div class="loading triangle">
  28. <div class="loading-mask"></div>
  29. <div class="loading-indicator" data-test-id="loading-indicator">
  30. <img src="<%=require('sentry-images/sentry-loader.svg')%>" />
  31. </div>
  32. <div class="loading-message">
  33. <p>Please wait while we load an obnoxious amount of JavaScript.</p>
  34. <p>
  35. <small>You may need to disable adblocking extensions to load Sentry.</small>
  36. </p>
  37. </div>
  38. </div>
  39. </div>
  40. <% if (htmlWebpackPlugin.options.window) { %>
  41. <script>
  42. <% for (var varName in htmlWebpackPlugin.options.window) { %>
  43. window['<%=varName%>'] = <%= JSON.stringify(htmlWebpackPlugin.options.window[varName]) %>;
  44. <% } %>
  45. </script>
  46. <% } %>
  47. </body>
  48. </html>