replace hardcoded api.puter.com with puter.APIOrigin

This commit is contained in:
ProgrammerIn-wonderland
2025-01-15 17:22:11 -05:00
parent 5798fcd042
commit 01fc301f1e
+1 -1
View File
@@ -321,7 +321,7 @@ window.puter = (function() {
this.p_can_request_rao_.resolve();
})();
(async () => {
const wispToken = (await (await fetch('https://api.puter.com/wisp/relay-token/create', {
const wispToken = (await (await fetch(this.APIOrigin + '/wisp/relay-token/create', {
method: 'POST',
headers: {
Authorization: `Bearer ${this.authToken}`,