This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/get-nonce/dist/es5/index.js
2025-01-11 09:54:09 +03:00

16 lines
371 B
JavaScript

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