diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index 23be964ec..954933804 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -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 diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 34365e296..a0bc26e8b 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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