Only disable overview panel in Chrome 48-, not all Chrome

master
Jeff Schiller 2015-12-07 07:53:28 -08:00
parent 87f92ce236
commit 96e5b2377e
1 changed files with 6 additions and 2 deletions

View File

@ -11,11 +11,15 @@
var overviewWindowGlobals = {}; var overviewWindowGlobals = {};
svgEditor.addExtension("overview_window", function() { 'use strict'; 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. // https://code.google.com/p/chromium/issues/detail?id=565120.
if (svgedit.browser.isChrome()) { if (svgedit.browser.isChrome()) {
var verIndex = navigator.userAgent.indexOf("Chrome/") + 7;
var chromeVersion = parseInt(navigator.userAgent.substring(verIndex), 10);
if (chromeVersion < 49) {
return; return;
} }
}
// Define and insert the base html element. // Define and insert the base html element.
var propsWindowHtml= "\ var propsWindowHtml= "\