From e15d85a469034d030cd3cc38d902d56aec7165b4 Mon Sep 17 00:00:00 2001 From: Mqrius Date: Mon, 19 May 2014 10:45:33 +0200 Subject: [PATCH 1/8] Update background.js Autostart breaks --- background.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index d09ff79..cee248c 100644 --- a/background.js +++ b/background.js @@ -297,8 +297,8 @@ var notification, mainPomodoro = new Pomodoro({ }); chrome.browserAction.setBadgeText({text: ''}); + var nextModeName = chrome.i18n.getMessage(timer.pomodoro.nextMode); if(PREFS.showNotifications) { - var nextModeName = chrome.i18n.getMessage(timer.pomodoro.nextMode); notification = webkitNotifications.createNotification( ICONS.FULL[timer.type], chrome.i18n.getMessage("timer_end_notification_header"), @@ -318,6 +318,10 @@ var notification, mainPomodoro = new Pomodoro({ console.log("playing ring", RING); RING.play(); } + + if(nextModeName == Pomodoro.mostRecentMode) { + mainPomodoro.start(); + } }, onStart: function (timer) { chrome.browserAction.setIcon({ From 7a0eb0fdc3382121bb3ef9fdecacad8d444b4d56 Mon Sep 17 00:00:00 2001 From: Mqrius Date: Mon, 19 May 2014 11:28:58 +0200 Subject: [PATCH 2/8] Update background.js --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index cee248c..f50fd50 100644 --- a/background.js +++ b/background.js @@ -319,7 +319,7 @@ var notification, mainPomodoro = new Pomodoro({ RING.play(); } - if(nextModeName == Pomodoro.mostRecentMode) { + if(nextModeName == 'break') { mainPomodoro.start(); } }, From 5de040667650f298230bc2f5f5da4db8a4b93343 Mon Sep 17 00:00:00 2001 From: Mqrius Date: Mon, 19 May 2014 11:37:12 +0200 Subject: [PATCH 3/8] Update options.html --- options.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/options.html b/options.html index d97ca87..3dbda09 100644 --- a/options.html +++ b/options.html @@ -135,6 +135,14 @@

+
+ + +
+
+ + +