main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
501 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | /*
|
---|
| 2 | MIT License http://www.opensource.org/licenses/mit-license.php
|
---|
| 3 | Author Ivan Kopeykin @vankop
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | "use strict";
|
---|
| 7 |
|
---|
| 8 | const RuntimeGlobals = require("../RuntimeGlobals");
|
---|
| 9 | const RuntimeModule = require("../RuntimeModule");
|
---|
| 10 |
|
---|
| 11 | class 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 |
|
---|
| 24 | module.exports = NonceRuntimeModule;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.