1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Clipper: Disable incorrect detection of dev mode for Firefox extension

This commit is contained in:
Laurent Cozic 2018-05-26 17:37:03 +01:00
parent 2b624a9aed
commit 58201fd6c3
3 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,7 @@ if (typeof browser !== 'undefined') {
} }
function env() { function env() {
return 'prod';
return !('update_url' in browser_.runtime.getManifest()) ? 'dev' : 'prod'; return !('update_url' in browser_.runtime.getManifest()) ? 'dev' : 'prod';
} }

View File

@ -1,9 +1,9 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Joplin Web Clipper", "name": "Joplin Web Clipper",
"version": "1.0.2", "version": "1.0.3",
"description": "Gets and saves content from your browser to Joplin.", "description": "Capture and save web pages and screenshots from your browser to Joplin.",
"homepage_url": "https://joplin.cozic.net", "homepage_url": "https://joplin.cozic.net",

View File

@ -42,6 +42,7 @@ class Bridge {
} }
env() { env() {
return 'prod';
return !('update_url' in this.browser().runtime.getManifest()) ? 'dev' : 'prod'; return !('update_url' in this.browser().runtime.getManifest()) ? 'dev' : 'prod';
} }