Skip to content

Commit

Permalink
Set isSW to false and add documentation on wbInfo
Browse files Browse the repository at this point in the history
See
webrecorder/wombat#155 (comment)
for details about why we need to set isSW to false
  • Loading branch information
benoit74 committed Jun 25, 2024
1 parent b5abda5 commit 54a4b9e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions javascript/src/wombatSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,14 +281,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,
};
}

Expand Down

0 comments on commit 54a4b9e

Please sign in to comment.