apply.js: don't alter DOM stylesheet state if same
This commit is contained in:
parent
d53db2d45c
commit
49cba8cced
3
apply.js
3
apply.js
|
@ -84,7 +84,8 @@ function disableAll(disable) {
|
|||
|
||||
function disableSheets(disable, doc) {
|
||||
Array.prototype.forEach.call(doc.styleSheets, function(stylesheet) {
|
||||
if (stylesheet.ownerNode.classList.contains("stylus")) {
|
||||
if (stylesheet.ownerNode.classList.contains("stylus")
|
||||
&& stylesheet.disabled != disable) {
|
||||
stylesheet.disabled = disable;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user