1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[CRX] Fall back to sender.tab.url if !tab.url

sender.url is relatively new (Chromium 29)
 ( https://chromiumcodereview.appspot.com/14301016 )
This commit is contained in:
Rob Wu 2014-01-25 20:09:04 +01:00
parent 520fdf2f6a
commit aeaf11ca43
3 changed files with 7 additions and 6 deletions

View file

@ -145,7 +145,9 @@ var PDFHistory = {
// window.history.pushState(stateObj, '');
//#endif
//#if CHROME
// chrome.runtime.sendMessage('showPageAction');
// if (top === window) {
// chrome.runtime.sendMessage('showPageAction');
// }
//#endif
}
},

View file

@ -1573,7 +1573,9 @@ var DocumentOutlineView = function documentOutlineView(outline) {
// // Example: chrome-extension://.../http://example.com/file.pdf
// var humanReadableUrl = '/' + DEFAULT_URL + location.hash;
// history.replaceState(history.state, '', humanReadableUrl);
// chrome.runtime.sendMessage('showPageAction');
// if (top === window) {
// chrome.runtime.sendMessage('showPageAction');
// }
// }
//})();
//#endif