Merge "Live Preview: Cope with the edit summary being an OOjs UI widget"
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / mw.rcfilters.js
index 8cea27e..7bdc2a2 100644 (file)
@@ -1,4 +1,8 @@
 ( function ( mw ) {
+       /**
+        * @class
+        * @singleton
+        */
        mw.rcfilters = {
                dm: {},
                ui: {},
@@ -40,6 +44,9 @@
 
                                return result;
                        }
+               },
+               featureFlags: {
+                       liveUpdate: mw.config.get( 'wgStructuredChangeFiltersEnableLiveUpdate' ) || new mw.Uri().query.liveupdate
                }
        };
 }( mediaWiki ) );