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:
commit
58407cfa94
8 changed files with 137 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue