fix #1094: plugin installation in MS Edge

This commit is contained in:
antelle 2019-02-04 19:43:45 +01:00
parent e79e903f25
commit 5ebc63833d
2 changed files with 4 additions and 3 deletions

View File

@ -292,7 +292,7 @@ const Plugin = Backbone.Model.extend(_.extend({}, PluginStatus, {
const locKey = this.getThemeLocaleKey(theme.name);
SettingsManager.allThemes[theme.name] = locKey;
BaseLocale[locKey] = theme.title;
for (const styleSheet of document.styleSheets) {
for (const styleSheet of Array.from(document.styleSheets)) {
if (styleSheet.ownerNode.id === id) {
this.processThemeStyleSheet(styleSheet, theme);
break;
@ -306,7 +306,7 @@ const Plugin = Backbone.Model.extend(_.extend({}, PluginStatus, {
processThemeStyleSheet(styleSheet, theme) {
const themeSelector = '.th-' + theme.name;
const badSelectors = [];
for (const rule of styleSheet.cssRules) {
for (const rule of Array.from(styleSheet.cssRules)) {
if (rule.selectorText && rule.selectorText.lastIndexOf(themeSelector, 0) !== 0) {
badSelectors.push(rule.selectorText);
}

View File

@ -1,7 +1,8 @@
Release notes
-------------
##### v1.7.5 (2019-02-05)
##### v1.7.5 (2019-02-04)
`-` fix #1096: focus issues after minimizing
`-` fix #1094: plugin installation in MS Edge
##### v1.7.4 (2019-01-17)
`-` fix #423: input focus issues in desktop apps