Add location.port to indexes in case application is on non-standard port

Signed-off-by: John Fortin <fortinj66@gmail.com>
This commit is contained in:
John Fortin 2021-04-07 10:34:52 -04:00
parent dcd35c6b70
commit 99c045a799
2 changed files with 4 additions and 4 deletions

View File

@ -75,7 +75,7 @@
if (location.hostname == "localhost"){
playlistApiUrl = "http://localhost:81/"
} else {
playlistApiUrl = "http://" + location.hostname + "/api/playlists"
playlistApiUrl = "http://" + location.hostname + ":" + location.port + "/api/playlists"
}
var app = angular.module('videos', []);
@ -96,4 +96,4 @@
</script>
</body>
</html>
</html>

View File

@ -72,7 +72,7 @@
if (location.hostname == "localhost"){
playlistApiUrl = "http://localhost:81/"
} else {
playlistApiUrl = "http://" + location.hostname + "/api/playlists"
playlistApiUrl = "http://" + location.hostname + ":" + location.port + "/api/playlists"
}
var app = angular.module('videos', []);
@ -93,4 +93,4 @@
</script>
</body>
</html>
</html>