Remove old_browser_js_support
This was needed for IE8 and IE9
This commit is contained in:
parent
b8149a1fa1
commit
8f0c74f72e
2 changed files with 0 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue