From aab21ef91da9e562dbeeda68658602541a80d0c0 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Fri, 17 Jul 2026 11:42:48 -0700 Subject: [PATCH] don't record app open in iframe env --- src/puter-js/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/puter-js/src/index.js b/src/puter-js/src/index.js index a8146947d..921048ae6 100644 --- a/src/puter-js/src/index.js +++ b/src/puter-js/src/index.js @@ -701,7 +701,9 @@ const puterInit = function () { async request_rao_() { await this.p_can_request_rao_; - if (this.env === 'gui') { + // Don't record an app open when running inside the Puter GUI, or + // when running as a Puter app (i.e. within an iframe in the GUI). + if (this.env === 'gui' || this.env === 'app') { return; }