Skip to content

Commit

Permalink
fix: Désactiver le lien vers l'interface Web de Kodi. (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Aug 11, 2021
1 parent 04e4e0b commit 5cdeb5b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/popup/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,17 +859,6 @@ const load = async function () {
document.querySelector("#feedback").disabled = false;
document.querySelector("#donate").disabled = false;
document.querySelector("#rate").disabled = false;

// Afficher le bouton vers l'interface Web de Kodi seulement si
// celle-ci est accessible.
try {
const url = `http://${kodi.url.hostname}:8080`;
await fetch(url);
document.querySelector("#web").dataset.url = url;
document.querySelector("#web").style.display = "block";
} catch {
// Laisser le bouton caché.
}
} catch (err) {
splash(err);
}
Expand Down

0 comments on commit 5cdeb5b

Please sign in to comment.