Skip to content

Commit 3b81685

Browse files
committed
-Update comments
1 parent aa637a9 commit 3b81685

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ androidMessagesWebview.addEventListener('dom-ready', () => {
6060
//Notification.requestPermission(); // Could be necessary for initial notification, need to test
6161

6262
// Make the title centered so that it won't get weirdly covered by the traffic light on mac
63-
// 10px should make it look roughly-centered
63+
// 10px should make it look roughly centered
64+
// TODO: Use more sophisticated CSS which doesn't rely on Google's obfuscated class names to do this
6465
if (IS_MAC) {
6566
androidMessagesWebview.insertCSS('div.kegSbc{width:100%}h1.tuQbQc{text-align:center; transform: translateX(10px)}');
6667
}

src/background.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let mainWindow = null;
3030

3131
// Prevent multiple instances of the app which causes many problems with an app like ours
3232
// Without this, if an instance were minimized to the tray in Windows, clicking a shortcut would launch another instance, icky
33-
// Adapted from https://github.com/electron/electron/blob/v2.0.2/docs/api/app.md#appmakesingleinstancecallback
33+
// Adapted from https://github.com/electron/electron/blob/v4.0.4/docs/api/app.md#apprequestsingleinstancelock
3434
const isFirstInstance = app.requestSingleInstanceLock();
3535

3636
if (!isFirstInstance) {

0 commit comments

Comments
 (0)