Skip to content

Commit

Permalink
add bx fetch, bump to 0.6.7 (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer authored Dec 30, 2024
1 parent 0c90cd0 commit 16b985c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browsertrix-behaviors",
"version": "0.6.6",
"version": "0.6.7",
"main": "index.js",
"author": "Webrecorder Software",
"license": "AGPL-3.0-or-later",
Expand Down
5 changes: 3 additions & 2 deletions src/autofetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ export class AutoFetcher extends BackgroundBehavior {

let success = false;

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

if (!success) {
await this.doFetchNonCors(url);
Expand Down

0 comments on commit 16b985c

Please sign in to comment.