Merge pull request #7914 from gberaudo/some_easy_window_cleanups

Some easy window cleanups
This commit is contained in:
Tim Schaub
2018-03-03 13:04:30 -07:00
committed by GitHub
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -167,7 +167,7 @@ export const checkFont = (function() {
}
}
if (done) {
window.clearInterval(interval);
clearInterval(interval);
interval = undefined;
}
}
@@ -184,7 +184,7 @@ export const checkFont = (function() {
if (!isAvailable(fontFamily)) {
checked[fontFamily] = 0;
if (interval === undefined) {
interval = window.setInterval(check, 32);
interval = setInterval(check, 32);
}
}
}