mirror of
https://github.com/voltbonn/diversity.volt.link.git
synced 2024-09-28 21:03:08 +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_
|
||||
}
|
||||
} catch (error) {
|
||||
if (!!_DATA_GOT_LOADED) {
|
||||
if (window.hasOwnProperty('_DATA_GOT_LOADED') && typeof window._DATA_GOT_LOADED === 'function') {
|
||||
_DATA_GOT_LOADED()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue