This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------- | |
// Slider to switch between local/remote addresses. | |
// Allows you to change the domains of the href targets to the current domain (e.g. when using a VPN). | |
// ----------------- | |
// these domain (href) will be changed to the current browser domain | |
// prevents changing links to other services/servers which should not be changed | |
const host = "pi-server.local"; // TODO: change this | |
const updateLocation = () => { |