From 07983e5999e222dfa5088261d525dae6757ddfe3 Mon Sep 17 00:00:00 2001 From: Christoph Diehl Date: Thu, 8 Jun 2017 15:41:04 +0200 Subject: [PATCH] Let platform be a self-invoked function --- lib/utils/platform.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/utils/platform.js b/lib/utils/platform.js index 8e737bf..f302572 100644 --- a/lib/utils/platform.js +++ b/lib/utils/platform.js @@ -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 - } -} +})()