mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
[CRX] Recognize blob and data-URLs in the router
When a blob or data-URL is opened with the extension, viewer.html rewrites the URL. But when the viewer is refreshed (e.g. F5), Chrome would fail to display the viewer because the extension router was not set up to recognize such URLs. Now it is.
This commit is contained in:
parent
5fdc908f02
commit
d9f90d595d
2 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,8 @@ limitations under the License.
|
|||
'ftp',
|
||||
'file',
|
||||
'chrome-extension',
|
||||
'blob',
|
||||
'data',
|
||||
// Chromium OS
|
||||
'filesystem',
|
||||
// Chromium OS, shorthand for filesystem:<origin>/external/
|
||||
|
|
|
@ -63,6 +63,8 @@
|
|||
"ftp:/*",
|
||||
"file:/*",
|
||||
"chrome-extension:/*",
|
||||
"blob:*",
|
||||
"data:*",
|
||||
"filesystem:/*",
|
||||
"drive:*"
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue