Let platform be a self-invoked function
This commit is contained in:
parent
ccb0996187
commit
07983e5999
1 changed files with 2 additions and 4 deletions
|
@ -2,8 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
utils.platform = {
|
||||
platform: function () {
|
||||
utils.platform = (function () {
|
||||
let platform = {}
|
||||
|
||||
const userAgent = (navigator.userAgent).toLowerCase()
|
||||
|
@ -95,5 +94,4 @@ utils.platform = {
|
|||
if (platform.isMozilla) { platform.srcObject = 'mozSrcObject' }
|
||||
|
||||
return platform
|
||||
}
|
||||
}
|
||||
})()
|
||||
|
|
Loading…
Reference in a new issue