Commit 8f0c74f7 authored by Benjamin Neff's avatar Benjamin Neff Committed by Steffen van Bergerem

Remove old_browser_js_support

This was needed for IE8 and IE9
parent b8149a1f
......@@ -50,21 +50,6 @@ module LayoutHelper
stylesheet_link_tag "#{current_color_theme}/#{view}", media: "all"
end
def old_browser_js_support
nonced_javascript_tag do
<<-JS.html_safe
if(Array.isArray === undefined) {
Array.isArray = function (arg) {
return Object.prototype.toString.call(arg) == '[object Array]';
};
}
if ((window.history) && (window.history.pushState === undefined)) {
window.history.pushState = function() { };
}
JS
end
end
def flash_messages
flash.map do |name, msg|
klass = flash_class name
......
......@@ -8,8 +8,6 @@
%meta{name: "viewport", content: "width=device-width, initial-scale=1"}/
- content_for :javascript do
= old_browser_js_support
= javascript_include_tag :main, :templates
= load_javascript_locales
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment