'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const cssCdnUrlList = [
  // 调整为从本地引入，注释下面的 url
  // '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
  // '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
];
const jsCdnUrlList = [];
function setCssCdn() {
  if (cssCdnUrlList.length <= 0) return false;
  cssCdnUrlList.map((v) => {
    let link = document.createElement("link");
    link.rel = "stylesheet";
    link.href = v;
    link.crossOrigin = "anonymous";
    document.getElementsByTagName("head")[0].appendChild(link);
  });
}
function setJsCdn() {
  if (jsCdnUrlList.length <= 0) return false;
  jsCdnUrlList.map((v) => {
    let link = document.createElement("script");
    link.src = v;
    document.body.appendChild(link);
  });
}
const setIntroduction = {
  // 设置css
  cssCdn: () => {
    setCssCdn();
  },
  // 设置js
  jsCdn: () => {
    setJsCdn();
  }
};

exports.default = setIntroduction;
exports.setCssCdn = setCssCdn;
exports.setJsCdn = setJsCdn;
