Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tails
tails
Commits
dfd202e4
Commit
dfd202e4
authored
Nov 01, 2017
by
sajolida
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minimum versions required to run our extension (based on availability of APIs
parent
894b4441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
wiki/src/install/inc/js/dave_2.js
wiki/src/install/inc/js/dave_2.js
+9
-4
No files found.
wiki/src/install/inc/js/dave_2.js
View file @
dfd202e4
...
...
@@ -80,11 +80,16 @@ document.addEventListener('DOMContentLoaded', function() {
}
function
detectBrowser
()
{
// XXX: Fix these minimum versions
/* To list the APIs that our extension is using, execute: git grep 'chrome.'
Browser compatibility:
- https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Browser_support_for_JavaScript_APIs
- https://developer.chrome.com/extensions/api_index
*/
minVersion
=
{
'
firefox
'
:
38
,
'
chrome
'
:
44
,
'
torbrowser
'
:
5
'
firefox
'
:
45
,
// First release with chrome.runtime.getManifest
'
chrome
'
:
22
,
// First release with chrome.runtime.getManifest
'
torbrowser
'
:
6
// First release based on Firefox 4
5
};
document
.
getElementById
(
'
min-version-firefox
'
).
textContent
=
minVersion
.
firefox
.
toString
();
document
.
getElementById
(
'
min-version-chrome
'
).
textContent
=
minVersion
.
chrome
.
toString
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment