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:
Lucas Stadler 2012-02-13 20:23:31 +01:00
parent 38a6cd6f9a
commit 913faac2e4
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"version": "0.1",
"description": "Read PDF Document",
"permissions": [
"experimental",
"webRequest", "webRequestBlocking",
"http://*/*.pdf",
"file:///*/*.pdf"
],

View File

@ -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;