Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

allow the "show reddit information" button to appear on https websites #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
== Version 1.1.3 ==
* Add HTTPS domains.

== Version 1.1.2 ==
* Fix display issue on image pages.

Expand Down
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ mailChecker = {
}

function setPageActionIcon(tab) {
if (/^http:\/\/.*/.test(tab.url)) {
if (/^https?:\/\/.*/.test(tab.url)) {
var info = redditInfo.getURL(tab.url)
if (info) {
chrome.pageAction.setIcon({tabId:tab.id, path:'/images/reddit.png'})
Expand Down
9 changes: 5 additions & 4 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "reddit companion",
"version": "1.1.2",
"version": "1.1.3",
"manifest_version": 2,
"description": "Turn your browser into a redditor's best friend.",
"options_page": "options.html",
"permissions": [
"tabs",
"notifications",
"http://*/*"
"http://*/*",
"https://*/*"
],
"content_security_policy": "default-src 'self'; connect-src 'self' http://www.reddit.com",
"content_security_policy": "default-src 'self'; connect-src 'self' http://www.reddit.com; style-src 'self' 'unsafe-inline'; script-src 'self'",
"icons": {
"16" : "images/shine-16.png",
"48" : "images/shine-48.png",
Expand All @@ -29,7 +30,7 @@
"js": ["debug.js", "redditContent.js"]
},
{
"matches": ["http://*/*"],
"matches": ["http://*/*", "https://*/*"],
"run_at": "document_start",
"js": ["debug.js", "pageOverlay.js"]
}
Expand Down