Skip to content

Commit 4858c06

Browse files
committed
fix: initialize the framework in the right way
1 parent eaf00bf commit 4858c06

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "requestly",
33
"productName": "Requestly",
4-
"version": "25.10.8",
4+
"version": "25.11.10",
55
"main": "src/main/main.ts",
66
"private": true,
77
"description": "Intercept & Modify HTTP Requests",

release/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "requestly",
33
"productName": "Requestly",
4-
"version": "25.10.8",
4+
"version": "25.11.10",
55
"private": true,
66
"description": "Intercept & Modify HTTP Requests",
77
"main": "./dist/main/main.js",

src/main/main.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ import logger from "../utils/logger";
3232
import { setupIPCForwardingToWebApp } from "./actions/setupIPCForwarding";
3333
import { saveCookies } from "./actions/cookiesHelpers";
3434

35+
if (process.env.IS_SETAPP_BUILD === "true") {
36+
log.log("[SETAPP] build identified")
37+
const setappFramework = require("@setapp/framework-wrapper");
38+
setappFramework.SetappManager.shared.reportUsageEvent(setappFramework.SETAPP_USAGE_EVENT.USER_INTERACTION);
39+
log.log("[SETAPP] integration complete")
40+
}
41+
42+
3543
// Init remote so that it could be consumed in renderer
3644
const remote = require("@electron/remote/main");
3745
remote.initialize();
@@ -474,11 +482,6 @@ app
474482
.whenReady()
475483
.then(() => {
476484
app.on("activate", () => {
477-
if (process.env.IS_SETAPP_BUILD === "true") {
478-
const setappFramework = require("@setapp/framework-wrapper");
479-
setappFramework.SetappManager.shared.reportUsageEvent(setappFramework.SETAPP_USAGE_EVENT.USER_INTERACTION);
480-
}
481-
482485
// On macOS it's common to re-create a window in the app when the
483486
// dock icon is clicked and there are no other windows open.
484487
if (BrowserWindow.getAllWindows().length === 0) {

0 commit comments

Comments
 (0)