Merge pull request #2272 from moderation/master

add uppercase extension recognition for Chrome
This commit is contained in:
Yury Delendik 2012-10-18 06:46:36 -07:00
commit f7bfe2cec1
2 changed files with 8 additions and 2 deletions

View File

@ -7,7 +7,10 @@
"webRequest", "webRequestBlocking", "webRequest", "webRequestBlocking",
"http://*/*.pdf", "http://*/*.pdf",
"https://*/*.pdf", "https://*/*.pdf",
"file:///*/*.pdf" "file:///*/*.pdf",
"http://*/*.PDF",
"https://*/*.PDF",
"file://*/*.PDF"
], ],
"background": { "background": {
"page": "pdfHandler.html" "page": "pdfHandler.html"

View File

@ -32,7 +32,10 @@ chrome.webRequest.onBeforeRequest.addListener(
urls: [ urls: [
'http://*/*.pdf', 'http://*/*.pdf',
'https://*/*.pdf', 'https://*/*.pdf',
'file://*/*.pdf' 'file://*/*.pdf',
'http://*/*.PDF',
'https://*/*.PDF',
'file://*/*.PDF'
], ],
types: ['main_frame'] types: ['main_frame']
}, },