Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117767317
NonceRuntimeModule.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 15, 21:55
Size
494 B
Mime Type
text/x-c++
Expires
Tue, Jun 17, 21:55 (2 d)
Engine
blob
Format
Raw Data
Handle
26790911
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
NonceRuntimeModule.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Ivan Kopeykin @vankop
*/
"use strict";
const RuntimeGlobals = require("../RuntimeGlobals");
const RuntimeModule = require("../RuntimeModule");
class NonceRuntimeModule extends RuntimeModule {
constructor() {
super("nonce", RuntimeModule.STAGE_ATTACH);
}
/**
* @returns {string} runtime code
*/
generate() {
return `${RuntimeGlobals.scriptNonce} = undefined;`;
}
}
module.exports = NonceRuntimeModule;
Event Timeline
Log In to Comment