Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Update to use puter.api_origin
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelDeimos committed Mar 29, 2024
1 parent 69cf7fb commit c25c26e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ window.main_term = () => {
);
cw.postMessage({
$: 'config',
source: params['puter.domain']
? `https://api.${params['puter.domain']}/`
: 'https://api.puter.com/',
source: params['puter.api_origin'] ??
( params['puter.domain']
? `https://api.${params['puter.domain']}/`
: 'https://api.puter.com/' ),
...params
}, shellOrigin);
if ( initialSize ) cw.postMessage({
Expand Down

0 comments on commit c25c26e

Please sign in to comment.