app/views/layouts/application.html.erb in iqvoc-3.4.0 vs app/views/layouts/application.html.erb in iqvoc-3.5.0
- old
+ new
@@ -6,17 +6,17 @@
<%= csrf_meta_tag %>
<title><%= Iqvoc.title || t("txt.common.iqvoc_title") %></title>
<%= stylesheet_link_tag "blueprint/screen", :media => "screen, projection" %>
<%= stylesheet_link_tag "blueprint/print", :media => "print" %>
- <!--[if lt IE 8]>
+ <!--[if lt IE 8]>
<%= stylesheet_link_tag "blueprint/ie", :media => "screen, projection" %>
<![endif]-->
<%= stylesheet_link_tag "manifest" %>
- <!--[if (gte IE 6)&(lte IE 8)]>
- <%= stylesheet_link_tag "iqvoc/ie_fixes" %>
- <![endif]-->
+ <!--[if (gte IE 6)&(lte IE 8)]>
+ <%= stylesheet_link_tag "iqvoc/ie_fixes" %>
+ <![endif]-->
<%= yield :head %>
</head>
<body class="<%= "concept" unless @concept.nil? %>">
@@ -51,9 +51,16 @@
<% end %>
<a href="http://www.w3.org/2001/sw/" id="w3c_link"></a>
</div>
</div>
</div>
+
+ <script>
+ // load JSON polyfill only if necessary
+ if(typeof JSON === "undefined") {
+ document.write('<%= javascript_include_tag("json2").sub("</", "<\\/").html_safe %>');
+ }
+ </script>
<%= javascript_include_tag "manifest" %>
<%= yield :scripts %>
</body>
</html>