From aa81261875a9a08f28030f32a79f5f8b5e0ebd58 Mon Sep 17 00:00:00 2001
From: Robin Ward <robin.ward@gmail.com>
Date: Mon, 10 Aug 2015 16:46:36 -0400
Subject: [PATCH] FIX: Safari bugs with new customize code

---
 .../admin/controllers/admin-customize-css-html-show.js.es6    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/assets/javascripts/admin/controllers/admin-customize-css-html-show.js.es6 b/app/assets/javascripts/admin/controllers/admin-customize-css-html-show.js.es6
index f4e985391..0cf1a1a75 100644
--- a/app/assets/javascripts/admin/controllers/admin-customize-css-html-show.js.es6
+++ b/app/assets/javascripts/admin/controllers/admin-customize-css-html-show.js.es6
@@ -18,7 +18,7 @@ export default Ember.Controller.extend(activeSections, {
   downloadUrl: url('model.id', '/admin/size_customizations/%@'),
 
   mobile: function() {
-    return this.get('section').startsWith('mobile-');
+    return this.get('section').indexOf('mobile-') === 0;
   }.property('section'),
 
   maximizeIcon: function() {
@@ -72,7 +72,7 @@ export default Ember.Controller.extend(activeSections, {
         dest = 'mobile-' + section;
         if (sections.indexOf(dest) === -1) { dest = 'mobile-css'; }
       }
-      this.replaceWith('adminCustomizeCssHtml.show', this.get('model.id'), dest);
+      this.replaceRoute('adminCustomizeCssHtml.show', this.get('model.id'), dest);
     }
   }