All files / src/boot polyfill.ts

0% Statements 0/6
100% Branches 0/0
100% Functions 0/0
0% Lines 0/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                             
import { loadScripts } from "src/helper/utils";
import { BootInput } from "../types/boot";
 
export default async ({ app, router, Vue }: BootInput) => {
  if (!window.fetch) {
    loadScripts([
      {
        src: "https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.4/fetch.min.js",
        integrity:
          "sha384-2kkuqwSCFze1y7UcAejUH6wt2MpQ4naa++zWP0SxyUC/jnwq91SAfe14RAruXtnV"
      }
    ]);
  }
};