Skip to content

Commit 1df1afc

Browse files
committed
Update index.js
1 parent 75fc436 commit 1df1afc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ window.gui = async (options) => {
5050
options = options ?? {};
5151
// app_origin is deprecated, use gui_origin instead
5252
window.gui_params = options;
53-
window.gui_origin = `https://puter.com`;
53+
window.gui_origin = options.gui_origin ?? options.app_origin ?? `https://puter.com`;
5454
window.app_domain = options.app_domain ?? new URL(window.gui_origin).hostname;
5555
window.hosting_domain = options.hosting_domain ?? 'puter.site';
56-
window.api_origin = "https://api.puter.com";
56+
window.api_origin = options.api_origin ?? "https://api.puter.com";
5757
window.max_item_name_length = options.max_item_name_length ?? 500;
5858
window.require_email_verification_to_publish_website = options.require_email_verification_to_publish_website ?? true;
5959
window.disable_temp_users = options.disable_temp_users ?? false;

0 commit comments

Comments
 (0)