Remove old_browser_js_support

This was needed for IE8 and IE9
This commit is contained in:
Benjamin Neff 2017-08-19 12:45:25 +02:00 committed by Steffen van Bergerem
parent b8149a1fa1
commit 8f0c74f72e
No known key found for this signature in database
GPG key ID: 315C9787D548DC6B
2 changed files with 0 additions and 17 deletions

View file

@ -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

View file

@ -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