Commit 5c2ef16f authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Only switch between http: and https: for google fonts.

So that when the docs are loaded over file: protocol we'll still load
the fonts over http:, not attempting to load them from local filesystem.
parent a4d49e9d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -10,7 +10,10 @@
  <!-- END CSS -->
  <link rel="stylesheet" href="resources/prettify/prettify.css" type="text/css" />
  <script type="text/javascript">
  document.write("<link href='"+document.location.protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>
  <style type="text/css">
  .description .short { display: none !important }
+4 −1
Original line number Diff line number Diff line
@@ -14,7 +14,10 @@
  <!-- END CSS -->
  <link rel="stylesheet" href="resources/prettify/prettify.css" type="text/css" />
  <script type="text/javascript">
  document.write("<link href='"+document.location.protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  (function(){
    var protocol = (document.location.protocol === "https:") ? "https:" : "http:";
    document.write("<link href='"+protocol+"//fonts.googleapis.com/css?family=Exo' rel='stylesheet' type='text/css' />");
  })();
  </script>

  <script type="text/javascript" src="{extjs_path}"></script>