Skip to content

Commit 16b985c

Browse files
authored
add bx fetch, bump to 0.6.7 (#84)
1 parent 0c90cd0 commit 16b985c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "browsertrix-behaviors",
3-
"version": "0.6.6",
3+
"version": "0.6.7",
44
"main": "index.js",
55
"author": "Webrecorder Software",
66
"license": "AGPL-3.0-or-later",

src/autofetcher.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ export class AutoFetcher extends BackgroundBehavior {
169169

170170
let success = false;
171171

172-
// todo: option to use cors or non-cors fetch
173-
// success = await this.doFetchNonCors();
172+
if ((self as any).__bx_fetch) {
173+
success = await (self as any).__bx_fetch(url);
174+
}
174175

175176
if (!success) {
176177
await this.doFetchNonCors(url);

0 commit comments

Comments
 (0)