Make chrome extensions compatible with latest API changes.
That is, webRequest is no longer experimental and so it's easier to start (without --enable-experimental-extension-apis).
This commit is contained in:
parent
38a6cd6f9a
commit
913faac2e4
@ -3,7 +3,7 @@
|
||||
"version": "0.1",
|
||||
"description": "Read PDF Document",
|
||||
"permissions": [
|
||||
"experimental",
|
||||
"webRequest", "webRequestBlocking",
|
||||
"http://*/*.pdf",
|
||||
"file:///*/*.pdf"
|
||||
],
|
||||
|
@ -1,6 +1,6 @@
|
||||
<!doctype html>
|
||||
<script>
|
||||
chrome.experimental.webRequest.onBeforeRequest.addListener(
|
||||
chrome.webRequest.onBeforeRequest.addListener(
|
||||
function(details) {
|
||||
var viewerPage = 'content/web/viewer.html';
|
||||
var url = chrome.extension.getURL(viewerPage) + '?file=' + details.url;
|
||||
|
Loading…
Reference in New Issue
Block a user