mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-16 09:57:30 +01:00
check existance of config value
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
webEndpoint: location.origin,
|
webEndpoint: location.origin,
|
||||||
apiEndpoint: location.origin,
|
apiEndpoint: location.origin,
|
||||||
websocketsEndpoint: location.origin.replace("https:","wss:").replace("http:","ws:"),
|
websocketsEndpoint: location.origin.replace("https:","wss:").replace("http:","ws:"),
|
||||||
options: <%- JSON.stringify(config.spacedeck) %>
|
options: <%- config.spacedeck ? JSON.stringify(config.spacedeck) : "{}" %>
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user