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

Merge pull request #4006 from Rob--W/crx-url-in-pageaction

[CRX] Add a pageAction to omnibox showing PDF URL
This commit is contained in:
Brendan Dahl 2013-12-17 11:33:29 -08:00
commit 58407cfa94
8 changed files with 137 additions and 8 deletions

View file

@ -143,6 +143,9 @@ var PDFHistory = {
window.history.pushState(stateObj, '', document.URL);
//#else
// window.history.pushState(stateObj, '');
//#endif
//#if CHROME
// chrome.runtime.sendMessage('showPageAction');
//#endif
}
},

View file

@ -1530,6 +1530,7 @@ 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');
// }
//})();
//#endif