source: imaps-frontend/node_modules/webpack/lib/runtime/NonceRuntimeModule.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 501 bytes
Line 
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Ivan Kopeykin @vankop
4*/
5
6"use strict";
7
8const RuntimeGlobals = require("../RuntimeGlobals");
9const RuntimeModule = require("../RuntimeModule");
10
11class NonceRuntimeModule extends RuntimeModule {
12 constructor() {
13 super("nonce", RuntimeModule.STAGE_ATTACH);
14 }
15
16 /**
17 * @returns {string | null} runtime code
18 */
19 generate() {
20 return `${RuntimeGlobals.scriptNonce} = undefined;`;
21 }
22}
23
24module.exports = NonceRuntimeModule;
Note: See TracBrowser for help on using the repository browser.