Fixed bad reference to platform

This commit is contained in:
pyoor 2017-04-26 10:14:19 -04:00
parent 30c3a234da
commit f7e3a0c9a4

View file

@ -90,16 +90,16 @@ utils.script = {
return '(document.body || document.documentElement).appendChild' + utils.script.methodHead([name])
},
forceGC: function () {
if (platform.isMozilla) {
if (utils.platform.isMozilla) {
}
if (platform.isChrome) {
if (utils.platform.isChrome) {
if (window.GCController) {
return GCController.collect() // eslint-disable-line no-undef
}
}
if (platform.isSafari) {
if (utils.platform.isSafari) {
}
if (platform.isIE) {
if (utils.platform.isIE) {
}
},
getRandomElement: function () {