-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathinit.js
More file actions
23 lines (20 loc) · 875 Bytes
/
Copy pathinit.js
File metadata and controls
23 lines (20 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { SessionSync } from './main';
import { SessionManagement } from './session-management';
import { SessionAutoSave } from './session-history';
import { FaviconService } from './favicon-service';
export function initBackground() {
FaviconService.init();
SessionSync.init();
SessionManagement.init();
SessionAutoSave.init();
// Delete previous undo events
if (typeof browser !== 'undefined' && browser.storage && browser.storage.local) {
browser.storage.local.set({ 'undo.events': [] });
browser.storage.local.set({ 'trashcan.hide': true });
browser.storage.local.set({ 'trashcan.hide-count': 0 });
browser.storage.local.set({ 'session.active.filter': '' });
browser.storage.local.set({ 'session.selected': null });
browser.storage.local.set({ 'session.history.selected': null });
}
console.log('Session Sync -> background script initialized!');
}