From fda56fe2c9d294bc2b4f966c96422330f886a3f3 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Tue, 25 Jun 2024 11:25:56 +0000 Subject: [PATCH] Set isSW to false and add documentation on wbInfo See https://github.com/webrecorder/wombat/issues/155#issuecomment-2183191941 for details about why we need to set isSW to false --- javascript/src/wombatSetup.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/javascript/src/wombatSetup.js b/javascript/src/wombatSetup.js index 6720d2a..f6d2d06 100644 --- a/javascript/src/wombatSetup.js +++ b/javascript/src/wombatSetup.js @@ -288,14 +288,21 @@ export function getWombatInfo( // The host of the original url wombat_host: orig_host, + // We are not running inside a service worker, wombat needs to know about it since + // some "magic" URLs like blobs are not available + isSW: false, + // Extra options ? wombat_opts: {}, - // ? - enable_auto_fetch: true, + // Not used, we are not running in live mode + enable_auto_fetch: false, + + // Convert all post request to get request convert_post_to_get: true, + + // Not used, we are usualy not replaying in a frame target_frame: '___wb_replay_top_frame', - isSW: true, }; }