Skip to content

Commit 51771b6

Browse files
committed
Added try/catch to showUpdateNotification (might have resulted in background.js faulting for some users). Updated version to 2.0.1. If this was the case, update should trigger a refresh of the background page and resolve the issue
1 parent b1169e6 commit 51771b6

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

artwork/webstore/large_promo.pxm

909 KB
Binary file not shown.

stylebot/background/updates.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ function updateVersion(callback) {
2222
* Show notification for version update
2323
*/
2424
function showUpdateNotification() {
25-
var notification = webkitNotifications.createHTMLNotification(
26-
'notification/index.html'
27-
);
28-
notification.show();
25+
try {
26+
var notification = webkitNotifications.createHTMLNotification(
27+
'notification/index.html'
28+
);
29+
notification.show();
30+
} catch(e) {
31+
console.log(e);
32+
}
2933
}
3034

stylebot/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name" : "Stylebot",
4-
"version" : "2",
4+
"version" : "2.0.1",
55
"description" : "Change the appearance of websites instantly.
66
Preview and install styles created by users for your favorite websites",
77

0 commit comments

Comments
 (0)