Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117998683
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
Tue, Jun 17, 01:52
Size
494 B
Mime Type
text/x-c++
Expires
Thu, Jun 19, 01:52 (1 d, 23 h)
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