Page MenuHomeWickedGov Phorge

ext.centralNotice.cspViolationAlert.js
No OneTemporary

Size
390 B
Referenced Files
None
Subscribers
None

ext.centralNotice.cspViolationAlert.js

/**
* Show an alert on Content Security Policy violations
* https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent
*/
( function () {
document.addEventListener( 'securitypolicyviolation', function ( e ) {
var message = mw.message(
'centralnotice-csp-violation-alert', e.blockedURI
);
// eslint-disable-next-line no-alert
alert( message );
} );
}() );

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 09:24 (1 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e4/02/06355897d5795b4ef023878e4be8
Default Alt Text
ext.centralNotice.cspViolationAlert.js (390 B)

Event Timeline