Page MenuHomeWickedGov Phorge

ext.centralNotice.legacySupport.js
No OneTemporary

Size
662 B
Referenced Files
None
Subscribers
None

ext.centralNotice.legacySupport.js

/**
* Provides features to support legacy campaigns. With this mixin, campaigns may:
* - set a rate for Special:RecordImpression that's different from the default; and
* - signal that banners are not guaranteed to display.
*/
( function () {
var cn = mw.centralNotice,
mixin = new cn.Mixin( 'legacySupport' );
mixin.setPreBannerHandler( function ( mixinParams ) {
if ( mixinParams.setSRISampleRate ) {
cn.setMinRecordImpressionSampleRate( mixinParams.sriSampleRate );
}
if ( mixinParams.bannersNotGuaranteedToDisplay ) {
cn.setBannersNotGuaranteedToDisplay();
}
} );
// Register the mixin
cn.registerCampaignMixin( mixin );
}() );

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 06:06 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
9f/30/1e2caf6440fe8984aff2c4521cb3
Default Alt Text
ext.centralNotice.legacySupport.js (662 B)

Event Timeline