Skip to content

Commit

Permalink
fall back to sample worldname if can not detect worldname from subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
lcduong committed Oct 8, 2024
1 parent 296620b commit 03a1bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if (ENV_DEVELOPMENT || !window.venueless) {
// Extract the world name from the subdomain
// For a URL like 'wikimania.video.eventyay.com', the worldName should be 'wikimania'
const subdomains = hostname.split('.')
const worldName = subdomains.length > 2 ? subdomains[0] : 'qqq' // Get the first subdomain if it exists, otherwise default to 'sample'
const worldName = subdomains.length > 2 ? subdomains[0] : 'sample' // Get the first subdomain if it exists, otherwise default to 'sample'

Check failure on line 12 in webapp/config.js

View workflow job for this annotation

GitHub Actions / build

Multiple spaces found before '// Get the fir...'

Check failure on line 12 in webapp/config.js

View workflow job for this annotation

GitHub Actions / build

Multiple spaces found before '// Get the fir...'

config = {
api: {
Expand Down

0 comments on commit 03a1bca

Please sign in to comment.