Skip to content

Commit 3adcd39

Browse files
authored
Merge pull request #301 from openzim/fix_wombat_setup
Fix wombatSetup configuration
2 parents 1fdc823 + 65587b0 commit 3adcd39

2 files changed

Lines changed: 14 additions & 7 deletions

File tree

javascript/src/wombatSetup.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,21 @@ export function getWombatInfo(
292292
// The host of the original url
293293
wombat_host: orig_host,
294294

295-
// Extra options ?
296-
wombat_opts: {},
295+
// We are not running inside a service worker, wombat needs to know about it since
296+
// some "magic" URLs like blobs are not available
297+
isSW: false,
297298

298-
// ?
299-
enable_auto_fetch: true,
299+
// Convert all post request to get request
300300
convert_post_to_get: true,
301+
302+
// Not used, we are not replaying in a frame
301303
target_frame: '___wb_replay_top_frame',
302-
isSW: true,
304+
305+
// Not used, we are not running in live mode
306+
enable_auto_fetch: false,
307+
308+
// Extra options, not used
309+
wombat_opts: {},
303310
};
304311
}
305312

javascript/test/wombatSetup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ test('nominalWbInfo', (t) => {
2121
);
2222
t.is(wmInfo.coll, '');
2323
t.is(wmInfo.convert_post_to_get, true);
24-
t.is(wmInfo.enable_auto_fetch, true);
25-
t.is(wmInfo.isSW, true);
24+
t.is(wmInfo.enable_auto_fetch, false);
25+
t.is(wmInfo.isSW, false);
2626
t.is(wmInfo.is_framed, false);
2727
t.is(wmInfo.is_live, false);
2828
t.is(wmInfo.mod, '');

0 commit comments

Comments
 (0)