Commit b1498552 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Only load Typekit fonts at sencha.com.

Because the font-set is only registered for sencha.com and localhost,
running the docs app at any ther domain will get 403 error when
attempting to load fonts from typekit.com.

We should probably completely move this code to sencha-specific config
files.
parent 73644532
Loading
Loading
Loading
Loading
+17 −14
Original line number Diff line number Diff line
@@ -16,8 +16,10 @@
  <link rel="stylesheet" href="resources/prettify/prettify.css" type="text/css" />

  <!-- Async script to not block while loading TypeKit fonts -->
  <!-- TypeKit font-set is only registered for sencha.com and localhost -->
  <script type="text/javascript">
  (function() {
    if (/sencha.com$|localhost$/.test(window.location.hostname)) {
      var TypekitConfig = {
        kitId: 'uxj6dew'
      };
@@ -32,6 +34,7 @@
      };
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(tk, s);
    }
  })();
  </script>