Refactor: db tasks to database.js, log delete to modules/logs.js

This commit is contained in:
Scott Nonnenberg 2018-03-07 16:16:03 -08:00 committed by Scott Nonnenberg
parent 3527740598
commit 26c273618a
No known key found for this signature in database
GPG key ID: 5F82280C35134661
10 changed files with 196 additions and 191 deletions

View file

@ -43,18 +43,10 @@
ipc.send('update-tray-icon', unreadCount);
};
window.deleteAllLogs = function() {
ipc.send('delete-all-logs');
}
ipc.on('debug-log', function() {
Whisper.events.trigger('showDebugLog');
});
ipc.on('delete-all-logs-complete', function() {
Whisper.events.trigger('deleteAllLogsComplete');
});
ipc.on('set-up-with-import', function() {
Whisper.events.trigger('setupWithImport');
});
@ -115,6 +107,8 @@
// ES2015+ modules
window.Signal = window.Signal || {};
window.Signal.OS = require('./js/modules/os');
window.Signal.Logs = require('./js/modules/logs');
window.Signal.Types = window.Signal.Types || {};
window.Signal.Types.Attachment = require('./js/modules/types/attachment');
window.Signal.Types.Errors = require('./js/modules/types/errors');