There was an error while loading. Please reload this page.
1 parent 393500d commit 67aef63Copy full SHA for 67aef63
1 file changed
src/dev-center/js/dev-center.js
@@ -45,9 +45,11 @@ if ( window.url_params.has('puter.domain') ) {
45
46
// static hosting domain
47
window.static_hosting_domain = 'puter.site';
48
-if ( window.domain === 'puter.localhost' ) {
49
- window.static_hosting_domain = 'site.puter.localhost';
50
-}
+ if ( window.domain === 'puter.localhost' ) {
+ window.static_hosting_domain = 'site.puter.localhost';
+ } else if ( window.domain && window.domain !== 'puter.com' ) {
51
+ window.static_hosting_domain = `site.${window.domain}`;
52
+ }
53
54
// add port to static_hosting_domain if provided
55
if ( window.url_params.has('puter.port') && window.url_params.get('puter.port') ) {
0 commit comments