volleyball-dev-frontend/node_modules/get-nonce/dist/es2015/index.js
2025-06-02 16:42:16 +00:00

14 lines
300 B
JavaScript

var currentNonce;
export var setNonce = function (nonce) {
currentNonce = nonce;
};
export var getNonce = function () {
if (currentNonce) {
return currentNonce;
}
if (typeof __webpack_nonce__ !== 'undefined') {
return __webpack_nonce__;
}
return undefined;
};