Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/@orbit/core/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface OrbitGlobal {
deprecate: (message: string, test?: boolean | (() => boolean)) => void;
uuid: () => string;
debug: boolean;
fetch?: typeof fetch;
}

// Establish the root object, `window` (`self`) in the browser, `global`
Expand Down
4 changes: 1 addition & 3 deletions packages/@orbit/jsonapi/src/jsonapi-request-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ export class JSONAPIRequestProcessor {
delete settings.params;
}

let fetchFn = (Orbit as any).fetch || Orbit.globals.fetch;

// console.log('fetch', fullUrl, settings, 'polyfill', fetchFn.polyfill);
let fetchFn = Orbit.fetch || Orbit.globals.fetch;

if (settings.timeout !== undefined && settings.timeout > 0) {
let timeout = settings.timeout;
Expand Down