Skip to content

Commit bcf6026

Browse files
authored
Merge pull request #52 from reynaldichernando/workaround-puter-module
Fix puter module causing unref error
2 parents 8d02dcb + ff90f64 commit bcf6026

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/PuterModule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { init } from "@heyputer/puter.js/src/init.cjs";
21
import Conf from "conf";
32
import { PROJECT_NAME } from "../commons.js";
43
import { puter } from "@heyputer/puter.js";
@@ -13,7 +12,8 @@ export const initPuterModule = () => {
1312
const profile = profiles.find((v) => v.uuid === uuid);
1413
const authToken = profile?.token;
1514

16-
puterModule = init(authToken);
15+
puter.setAuthToken(authToken);
16+
puterModule = puter;
1717
};
1818

1919
/**

0 commit comments

Comments
 (0)