mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Add content/ to the viewer.html path
This commit is contained in:
parent
0658b2d082
commit
6e10114647
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,8 @@
|
|||
<script>
|
||||
chrome.experimental.webRequest.onBeforeRequest.addListener(
|
||||
function(details) {
|
||||
var url = chrome.extension.getURL('') + 'web/viewer.html?file=' + details.url;
|
||||
var viewerPage = 'content/web/viewer.html';
|
||||
var url = chrome.extension.getURL(viewerPage) + '?file=' + details.url;
|
||||
return { redirectUrl: url };
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue