Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/puter-js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const PROD_ORIGIN = 'https://puter.com';

export default globalThis.puter = (function() {
'use strict';

class Puter{
// The environment that the SDK is running in. Can be 'gui', 'app' or 'web'.
// 'gui' means the SDK is running in the Puter GUI, i.e. Puter.com.
Expand All @@ -45,6 +44,7 @@ export default globalThis.puter = (function() {
defaultAPIOrigin = globalThis.PUTER_API_ORIGIN ?? 'https://api.puter.com';
defaultGUIOrigin = globalThis.PUTER_ORIGIN ?? 'https://puter.com';

as = (obj) => { return obj.puter }
// An optional callback when the user is authenticated. This can be set by the app using the SDK.
onAuth;

Expand Down