From 96e5b2377e01040213762e197c1ba6ca79dad84d Mon Sep 17 00:00:00 2001 From: Jeff Schiller Date: Mon, 7 Dec 2015 07:53:28 -0800 Subject: [PATCH] Only disable overview panel in Chrome 48-, not all Chrome --- editor/extensions/ext-overview_window.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/editor/extensions/ext-overview_window.js b/editor/extensions/ext-overview_window.js index dca4846f..a31bfe07 100644 --- a/editor/extensions/ext-overview_window.js +++ b/editor/extensions/ext-overview_window.js @@ -11,10 +11,14 @@ var overviewWindowGlobals = {}; svgEditor.addExtension("overview_window", function() { 'use strict'; - // Temporarily disabled in Chrome, see https://github.com/SVG-Edit/svgedit/issues/26 and + // Disabled in Chrome 48-, see https://github.com/SVG-Edit/svgedit/issues/26 and // https://code.google.com/p/chromium/issues/detail?id=565120. if (svgedit.browser.isChrome()) { - return; + var verIndex = navigator.userAgent.indexOf("Chrome/") + 7; + var chromeVersion = parseInt(navigator.userAgent.substring(verIndex), 10); + if (chromeVersion < 49) { + return; + } } // Define and insert the base html element.