Blame view

天文台pc/tianwentai-ui/node_modules/get-nonce/dist/es5/index.js 371 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  var currentNonce;
  exports.setNonce = function (nonce) {
      currentNonce = nonce;
  };
  exports.getNonce = function () {
      if (currentNonce) {
          return currentNonce;
      }
      if (typeof __webpack_nonce__ !== 'undefined') {
          return __webpack_nonce__;
      }
      return undefined;
  };