mirror of
https://github.com/HeyPuter/puter.git
synced 2026-02-15 19:19:47 -06:00
Update index.js
This commit is contained in:
@@ -50,10 +50,10 @@ window.gui = async (options) => {
|
||||
options = options ?? {};
|
||||
// app_origin is deprecated, use gui_origin instead
|
||||
window.gui_params = options;
|
||||
window.gui_origin = `https://puter.com`;
|
||||
window.gui_origin = options.gui_origin ?? options.app_origin ?? `https://puter.com`;
|
||||
window.app_domain = options.app_domain ?? new URL(window.gui_origin).hostname;
|
||||
window.hosting_domain = options.hosting_domain ?? 'puter.site';
|
||||
window.api_origin = "https://api.puter.com";
|
||||
window.api_origin = options.api_origin ?? "https://api.puter.com";
|
||||
window.max_item_name_length = options.max_item_name_length ?? 500;
|
||||
window.require_email_verification_to_publish_website = options.require_email_verification_to_publish_website ?? true;
|
||||
window.disable_temp_users = options.disable_temp_users ?? false;
|
||||
|
||||
Reference in New Issue
Block a user