Commit b6ad2e7692f72c980a5ef0564f60b049333a9e1e
Run code through standard --fix for style
Chris Adams committed on 5/12/2018, 9:44:52 AMParent: 05d26ec79bdbb7f7583ee169d8ed48689f4f6bad
Files changed
index.js | changed |
main-window.js | changed |
modules/page/html/render/gatherings.js | changed |
modules/page/html/render/public.js | changed |
index.js | ||
---|---|---|
@@ -44,32 +44,30 @@ | ||
44 | 44 … | electron.app.on('ready', () => { |
45 | 45 … | setupContext('ssb', { |
46 | 46 … | server: !(process.argv.includes('-g') || process.argv.includes('--use-global-ssb')) |
47 | 47 … | }, () => { |
48 | - | |
49 | - var browserWindow = openMainWindow(); | |
48 … | + var browserWindow = openMainWindow() | |
50 | 49 … | var menu = defaultMenu(electron.app, electron.shell) |
51 | 50 … | |
52 | 51 … | menu.splice(4, 0, { |
53 | - label: "History", | |
52 … | + label: 'History', | |
54 | 53 … | submenu: [ |
55 | 54 … | { |
56 | - label: "Forward", | |
57 | - accelerator: "CmdOrCtrl+]", | |
55 … | + label: 'Forward', | |
56 … | + accelerator: 'CmdOrCtrl+]', | |
58 | 57 … | click: () => { |
59 | 58 … | browserWindow.webContents.send('goForward') |
60 | 59 … | } |
61 | 60 … | }, |
62 | 61 … | { |
63 | - label: "Back", | |
64 | - accelerator: "CmdOrCtrl+[", | |
62 … | + label: 'Back', | |
63 … | + accelerator: 'CmdOrCtrl+[', | |
65 | 64 … | click: () => { |
66 | - browserWindow.webContents.send("goBack") | |
65 … | + browserWindow.webContents.send('goBack') | |
67 | 66 … | } |
68 | 67 … | } |
69 | 68 … | ] |
70 | - }); | |
71 | - | |
69 … | + }) | |
72 | 70 … | |
73 | 71 … | var view = menu.find(x => x.label === 'View') |
74 | 72 … | view.submenu = [ |
75 | 73 … | { role: 'reload' }, |
@@ -97,9 +95,9 @@ | ||
97 | 95 … | { type: 'separator' }, |
98 | 96 … | { role: 'front' } |
99 | 97 … | ] |
100 | 98 … | } |
101 | - | |
99 … | + | |
102 | 100 … | Menu.setApplicationMenu(Menu.buildFromTemplate(menu)) |
103 | 101 … | }) |
104 | 102 … | |
105 | 103 … | electron.app.on('activate', function (e) { |
main-window.js | |||
---|---|---|---|
@@ -65,17 +65,17 @@ | |||
65 | 65 … | ||
66 | 66 … | var views = api.app.views(api.page.html.render, [ | |
67 | 67 … | '/public', '/private', id, '/mentions' | |
68 | 68 … | ]) | |
69 | - | ||
69 … | + | ||
70 | 70 … | var pendingCount = views.get('/mentions').pendingUpdates | |
71 | 71 … | ||
72 | 72 … | watch(pendingCount, count => { | |
73 | 73 … | electron.remote.app.setBadgeCount(count) | |
74 | 74 … | }) | |
75 | 75 … | ||
76 | - electron.ipcRenderer.on("goForward", views.goForward) | ||
77 | - electron.ipcRenderer.on("goBack", views.goBack) | ||
76 … | + electron.ipcRenderer.on('goForward', views.goForward) | ||
77 … | + electron.ipcRenderer.on('goBack', views.goBack) | ||
78 | 78 … | ||
79 | 79 … | document.head.appendChild( | |
80 | 80 … | h('style', { | |
81 | 81 … | innerHTML: computed(api.settings.obs.get('patchwork.theme', 'light'), themeName => { |
Built with git-ssb-web