semblance-dev/node_modules/get-nonce/dist/es5/index.js
2025-12-19 19:26:16 +00:00

15 lines
371 B
JavaScript
Executable file

"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;
};