Allow visual mode to tested with ?dtvisual=1

Bug: T251963
Change-Id: Ie86ed2097e3dc008f73d9b498627f9d025b865d5
This commit is contained in:
Ed Sanders 2020-05-06 18:01:45 +01:00
parent fdae56ea82
commit d18496f025

View file

@ -7,7 +7,7 @@ var
scrollPadding = { top: 10, bottom: 10 },
config = require( './controller/config.json' ),
// TODO: Remember last editor used
useVisual = config.useVisualEditor;
useVisual = config.useVisualEditor || ( new mw.Uri() ).query.dtvisual;
// Start loading reply widget code
if ( useVisual ) {