Skip to content

Commit

Permalink
Fixes for Firefox submit
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-rousseau committed Dec 10, 2017
1 parent 86cfdd9 commit 3ce5ccd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,18 @@ window.onload = function() {
hybridPages = hybridPages ? JSON.parse(hybridPages) : [];
document.getElementById('options').style.visibility = "hidden";
document.getElementById('sites').className = "shown";
document.getElementById('sites').innerHTML = hybridPages.map(function(url) { return '<a target="_blank" href="' + url + '">' + url + '</a>'; }).join('<br />');
// clickable links to open iTV application web site in new tabs ... (kind of history of previously visited pages)
var links = hybridPages.map(function(url) { return url; });
for (var i = 0, l = links.length; i < l; i++) {
var link = document.createElement('a');
link.setAttribute('target', '_blank');
link.setAttribute('href', links[i]);
var linkText = document.createTextNode(links[i]);
link.appendChild(linkText);
document.getElementById('sites').appendChild(link);
var endOfLine = document.createElement('br');
document.getElementById('sites').appendChild(endOfLine);
}
enableDisableSitesButton.textContent = "Show configuration";
}
});
Expand All @@ -240,7 +251,7 @@ window.onload = function() {
hybridPages = hybridPages ? JSON.parse(hybridPages) : [];
if (hybridPages.length > 0) {
localStorage.setItem('tvViewer_tabs', JSON.stringify(["http://itv.mit-xperts.com/hbbtvtest/capabilities/"]));
document.getElementById('sites').innerHTML = hybridPages.map(function(url) { return '<a target="_blank" href="' + url + '">' + url + '</a>'; }).join('<br />');
document.getElementById('sites').textContent = hybridPages.map(function(url) { return url; }).join('\n');
}
});

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Extension making CHROME & FIREFOX to deal with HbbTV,CE-HTML,BML,OHTV webpages",

"applications": {
"gecko": { // needed for FIREFOX in order to send messages
"gecko": {
"id": "hybridtvviewer@github.com",
"strict_min_version": "57.0"
}
Expand Down

0 comments on commit 3ce5ccd

Please sign in to comment.