Merge pull request #76 from fortinj66/master

Add  location.port to indexes in case application is on non-standard ports
This commit is contained in:
marceldempers 2021-04-21 08:11:22 +10:00 committed by GitHub
commit d64c813018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

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