forked from hibas123/SecureFileWrapper
Using native fetch on supported browsers
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Observable, Lock } from "@hibas123/utils";
|
||||
import fetch from "cross-fetch"
|
||||
//this references global on node and window in browser
|
||||
const fetch = this.fetch ? this.fetch : require("cross-fetch").default;
|
||||
|
||||
export interface IFileVersion {
|
||||
version: string;
|
||||
|
Reference in New Issue
Block a user