1
0
Fork 0
mirror of https://github.com/voltbonn/diversity.volt.link.git synced 2024-06-25 23:40:57 +00:00

fix: check if function exists before using it

This commit is contained in:
thomasrosen 2022-11-22 01:31:52 +01:00
parent 99c8a3c1da
commit ff09595fa3

View file

@ -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()
}
}