Make code compatible with IE11 - #11772

This commit is contained in:
Per Bergland
2021-11-20 11:44:07 +01:00
parent 8ae504b223
commit 087965d0f7

View File

@@ -18,7 +18,7 @@ if (
) {
let inBefore = false;
module.hot.onRequire({
before(module) {
before: function (module) {
if (inBefore) {
// This is a module required while loading the react refresh runtime
// Do not initialize it to avoid an infinite loop