Skip to content

Commit

Permalink
Only saving page when online.
Browse files Browse the repository at this point in the history
  • Loading branch information
galonsky committed Apr 17, 2012
1 parent cd67ecc commit 7fb9a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/contentScript.js
Expand Up @@ -11,7 +11,7 @@ function parseUrl(url) {
}

chrome.extension.onRequest.addListener(function (request, sender, sendResponse) {
if(request === 'recording') {
if(request === 'recording' && navigator.onLine) {
console.log('saving page');
savePage();
}
Expand Down

0 comments on commit 7fb9a0d

Please sign in to comment.