diff --git a/js/modules/signal_password.js b/js/modules/signal_password.js deleted file mode 100644 index 64e6b551e..000000000 --- a/js/modules/signal_password.js +++ /dev/null @@ -1,15 +0,0 @@ -// The idea with this file is to make it webpackable for the style guide - -const { - SessionPasswordPrompt, -} = require('../../ts/components/session/SessionPasswordPrompt'); - -exports.setup = () => { - const Components = { - SessionPasswordPrompt, - }; - - return { - Components, - }; -}; diff --git a/password_preload.js b/password_preload.js index 04a8a2001..d499b1609 100644 --- a/password_preload.js +++ b/password_preload.js @@ -21,17 +21,18 @@ window.getEnvironment = () => config.environment; window.getVersion = () => config.version; window.getAppInstance = () => config.appInstance; -// So far we're only using this for Signal.Types -const Signal = require('./js/modules/signal_password'); const electron = require('electron'); const ipc = electron.ipcRenderer; - -window.Signal = Signal.setup({ - Attachments: null, - userDataPath: null, - getRegionCode: () => null, -}); +const { + SessionPasswordPrompt, +} = require('./ts/components/session/SessionPasswordPrompt'); + +window.Signal = { + Components: { + SessionPasswordPrompt, + }, +} window.CONSTANTS = { MAX_LOGIN_TRIES: 3,