Skip to content

Commit

Permalink
Added try/catch to showUpdateNotification (might have resulted in bac…
Browse files Browse the repository at this point in the history
…kground.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
  • Loading branch information
ankit committed Jun 27, 2013
1 parent b1169e6 commit 51771b6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Binary file modified artwork/webstore/large_promo.pxm
Binary file not shown.
12 changes: 8 additions & 4 deletions stylebot/background/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ function updateVersion(callback) {
* Show notification for version update
*/
function showUpdateNotification() {
var notification = webkitNotifications.createHTMLNotification(
'notification/index.html'
);
notification.show();
try {
var notification = webkitNotifications.createHTMLNotification(
'notification/index.html'
);
notification.show();
} catch(e) {
console.log(e);
}
}

2 changes: 1 addition & 1 deletion stylebot/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name" : "Stylebot",
"version" : "2",
"version" : "2.0.1",
"description" : "Change the appearance of websites instantly.
Preview and install styles created by users for your favorite websites",

Expand Down

0 comments on commit 51771b6

Please sign in to comment.