From 00ded65b7f64601fb7e7f6724a6d3defaa56ecf5 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Tue, 3 Jul 2012 14:47:27 -0600 Subject: [PATCH] Fall back to old edit mode if typed arrays are not supported. --- lib/gollum/frontend/app.rb | 3 --- .../public/gollum/livepreview/index.html | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 2741b063..a16bf66b 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -32,12 +32,9 @@ module Precious # Detect unsupported browsers. @@supported_browsers = ['Firefox', 'Chrome', 'Safari'] Browser = Struct.new(:browser, :version) - # ie9 support is a work in progress. - # @@ie9 = Browser.new('Internet Explorer', '9.0') def supported_useragent?(user_agent) ua = UserAgent.parse(user_agent) - # return true if ua >= @@ie9 @@supported_browsers.include? ua.browser end diff --git a/lib/gollum/frontend/public/gollum/livepreview/index.html b/lib/gollum/frontend/public/gollum/livepreview/index.html index 17b8891c..1a56f730 100644 --- a/lib/gollum/frontend/public/gollum/livepreview/index.html +++ b/lib/gollum/frontend/public/gollum/livepreview/index.html @@ -2,6 +2,22 @@ Live Preview + @@ -24,7 +40,7 @@
-