Let platform be a self-invoked function

This commit is contained in:
Christoph Diehl 2017-06-08 15:41:04 +02:00
parent ccb0996187
commit 07983e5999
1 changed files with 2 additions and 4 deletions

View File

@ -2,8 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
utils.platform = { utils.platform = (function () {
platform: function () {
let platform = {} let platform = {}
const userAgent = (navigator.userAgent).toLowerCase() const userAgent = (navigator.userAgent).toLowerCase()
@ -95,5 +94,4 @@ utils.platform = {
if (platform.isMozilla) { platform.srcObject = 'mozSrcObject' } if (platform.isMozilla) { platform.srcObject = 'mozSrcObject' }
return platform return platform
} })()
}