From ba1e72711a4147f2216acfd9d43971d2f19d6de0 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 27 Jun 2025 16:29:38 +0200 Subject: [PATCH] Make sure users are fully connected when responding to a form --- www/form/main.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/form/main.js b/www/form/main.js index dfb0722b3..b1a132c5b 100644 --- a/www/form/main.js +++ b/www/form/main.js @@ -7,8 +7,9 @@ define([ '/components/nthen/index.js', '/api/config', '/common/dom-ready.js', + '/common/common-hash.js', '/common/sframe-common-outer.js', -], function (nThen, ApiConfig, DomReady, SFCommonO) { +], function (nThen, ApiConfig, DomReady, Hash, SFCommonO) { var href, hash; // Loaded in load #2 @@ -62,11 +63,12 @@ define([ }); }); }; + const parsed = Hash.parsePadUrl(href); SFCommonO.start({ addData: addData, addRpc: addRpc, //cache: true, - noDrive: true, + noDrive: parsed?.hashData?.mode !== "view", hash: hash, href: href, useCreationScreen: true,