Skip to content

Commit

Permalink
icon is also shown as page icon too (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSM100 authored Feb 5, 2024
1 parent e215a1e commit b0124cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webxdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ window.alterXdcApp = () => {
root.innerHTML =
'<img src="' + name + '" style="' + styleAppIcon + '">';
controlPanel.insertBefore(root.firstChild, controlPanel.childNodes[1]);

var pageIcon = document.createElement('link');
pageIcon.rel = "icon";
pageIcon.href = name;
document.head.append(pageIcon);
};
tester.src = name;
}
Expand Down

0 comments on commit b0124cb

Please sign in to comment.