mirror of
https://github.com/hassio-addons/addon-mqtt.git
synced 2025-05-07 04:31:26 +00:00
Automatically set the HOST url
This commit is contained in:
parent
21e331c04e
commit
4b2bfdffef
1 changed files with 3 additions and 2 deletions
|
@ -142,7 +142,8 @@
|
|||
$(document).foundation();
|
||||
$(document).ready(function () {
|
||||
|
||||
$('#urlInput').val(websocketserver);
|
||||
- $('#urlInput').val(websocketserver);
|
||||
+ $('#urlInput').val(window.location.hostname);
|
||||
$('#portInput').val(websocketport);
|
||||
- $('#clientIdInput').val('clientId-' + randomString(10));
|
||||
+ $('#clientIdInput').val('hassio-mqtt-client');
|
||||
|
@ -154,7 +155,7 @@
|
|||
});
|
||||
</script>
|
||||
+<div style="right: 2%;bottom: 2%;position: fixed;display: block;background-color: #f2f2f2;padding: 8px; z-index: -1;">
|
||||
+ <a href="https://www.buymeacoffee.com/ludeeus" target="_blank"> <i class="fa fa-coffee" style="margin-right: 10px;"></i>Buy Me A Coffee!</a>
|
||||
+ <a href="https://www.buymeacoffee.com/ludeeus" target="_blank"> <i class="fa fa-coffee" style="margin-right: 10px;"></i>Buy Me A Coffee</a>
|
||||
+</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue