From 67bbe4d5692043c6094215e38f3c03bee9ba6648 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Wed, 27 Sep 2017 22:23:53 -0500 Subject: [PATCH] apply: replace spread operator --- content/apply.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/apply.js b/content/apply.js index b28fd434..da31ee6f 100644 --- a/content/apply.js +++ b/content/apply.js @@ -277,7 +277,7 @@ function replaceAll(newStyles) { oldStyles.forEach(el => (el.id += '-ghost')); styleElements.clear(); disabledElements.clear(); - [...retiredStyleTimers.values()].forEach(clearTimeout); + Array.prototype.slice.call(retiredStyleTimers.values()).forEach(clearTimeout); retiredStyleTimers.clear(); applyStyles(newStyles); oldStyles.forEach(el => el.remove());