Skip to content

Commit

Permalink
xIFr 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNygaard committed Dec 13, 2020
1 parent 36cedee commit dd2a344
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions WebExtension/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var context = (function Context() {

// Console:
const LOG = false; // false
const INFO = false; // false
const INFO = true; // false
const DEBUG = false; // false
const ERROR = true;
function log(...arg) {
Expand Down Expand Up @@ -47,7 +47,7 @@ var context = (function Context() {

// Misc:
function supportsDeepSearch() {
return !!(typeof browser !== 'undefined' && browser.menus && browser.menus.getTargetElement); // Well, might not be enough. But for the time being this check should tell. In practice Firefox 63+ supports...
return !!(typeof browser !== 'undefined' && browser.menus && browser.menus.getTargetElement); // Well, might not be enough. But for the time being this check should tell. In practice Firefox 63+ supports, Chrome does not...
}
function prefersDark(dispMode) {
return dispMode === "darkMode" || (window && window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches);
Expand Down
5 changes: 3 additions & 2 deletions WebExtension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "xIFr",
"version": "1.7.0",
"version": "1.8.0",
"default_locale": "en",

"description": "__MSG_extensionDescription__",
Expand Down Expand Up @@ -37,7 +37,8 @@
"content_security_policy": "script-src 'self'; object-src 'none'",

"background": {
"scripts": ["lib/mozilla/browser-polyfill.js", "context.js", "backgroundscript.js"]
"scripts": ["lib/mozilla/browser-polyfill.js", "context.js", "backgroundscript.js"],
"persistent": false
},

"options_ui": {
Expand Down

0 comments on commit dd2a344

Please sign in to comment.