Remove window prefix
The prefix is unnecessary and prevent usage in web workers.
This commit is contained in:
@@ -167,7 +167,7 @@ export const checkFont = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (done) {
|
if (done) {
|
||||||
window.clearInterval(interval);
|
clearInterval(interval);
|
||||||
interval = undefined;
|
interval = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -184,7 +184,7 @@ export const checkFont = (function() {
|
|||||||
if (!isAvailable(fontFamily)) {
|
if (!isAvailable(fontFamily)) {
|
||||||
checked[fontFamily] = 0;
|
checked[fontFamily] = 0;
|
||||||
if (interval === undefined) {
|
if (interval === undefined) {
|
||||||
interval = window.setInterval(check, 32);
|
interval = setInterval(check, 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user