mirror of
https://github.com/voltbonn/diversity.volt.link.git
synced 2024-06-28 17:00:55 +00:00
fix: check if function exists before using it
This commit is contained in:
parent
99c8a3c1da
commit
ff09595fa3
|
@ -529,7 +529,7 @@ try {
|
||||||
module.exports = _DATA_
|
module.exports = _DATA_
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (!!_DATA_GOT_LOADED) {
|
if (window.hasOwnProperty('_DATA_GOT_LOADED') && typeof window._DATA_GOT_LOADED === 'function') {
|
||||||
_DATA_GOT_LOADED()
|
_DATA_GOT_LOADED()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue