From 1c4b7eb01c33dae312d5cd77711f1b4f456f9827 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 22 Mar 2018 11:51:47 -0400 Subject: [PATCH] Make namespace generation clearer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let’s make it clear that this is where we initialize our namespaces to avoid proliferation of various initialization points now that we support CommonJS. --- preload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preload.js b/preload.js index 3528fc75f..26aead31d 100644 --- a/preload.js +++ b/preload.js @@ -124,7 +124,7 @@ const { IdleDetector} = require('./js/modules/idle_detector'); - window.Signal = window.Signal || {}; + window.Signal = {}; window.Signal.Backup = require('./js/modules/backup'); window.Signal.Crypto = require('./js/modules/crypto'); window.Signal.Logs = require('./js/modules/logs'); @@ -134,7 +134,7 @@ window.Signal.Migrations.upgradeMessageSchema = upgradeMessageSchema; window.Signal.Migrations.V17 = require('./js/modules/migrations/17'); window.Signal.OS = require('./js/modules/os'); - window.Signal.Types = window.Signal.Types || {}; + window.Signal.Types = {}; window.Signal.Types.Attachment = Attachment; window.Signal.Types.Errors = require('./js/modules/types/errors'); window.Signal.Types.Message = Message;