mediawiki-extensions-Visual.../modules/ve-mw/preinit
Bartosz Dziewoński e6f1698bcb Fix "target is undefined" exception when loading fails
When loading the editor fails, getTarget() should return a rejected
promise. However, the rejection handler that logs the loading error
also accidentally converted the promise to a resolved one.

The easiest way to reproduce is to enable offline mode in your
browser's developer tools, then click "Edit".

Change-Id: Icf6ea14f4d4e3afcb6608f4c0c49b76c297bf9a3
2024-10-07 19:24:43 +00:00
..
styles Use fixed font size for UI componenets in Vector 22 2024-09-05 11:21:08 +01:00
.eslintrc.json Prefere ve.extendObject over $.extend 2021-11-15 21:30:19 +00:00
ve.init.mw.ArticleTargetLoader.js Allow &veaction=editsource to load 2017WTE regardless of user prefs 2024-08-26 20:13:36 +02:00
ve.init.mw.ArticleTargetSaver.js ESLint: Enforce no-var and autofix 2024-05-21 17:40:52 +01:00
ve.init.mw.DesktopArticleTarget.init.js Fix "target is undefined" exception when loading fails 2024-10-07 19:24:43 +00:00
ve.init.mw.DiffLoader.js ESLint: Enforce no-var and autofix 2024-05-21 17:40:52 +01:00
ve.init.mw.DiffPage.init.js Merge "Avoid Array.concat" 2024-05-29 22:02:03 +00:00
ve.init.mw.ProgressBarWidget.js ESLint: Enforce no-var and autofix 2024-05-21 17:40:52 +01:00
ve.init.mw.TempWikitextEditorWidget.js JSDoc: convert @cfg to @param 2024-05-26 21:59:02 -07:00
ve.init.MWEditingTabDialog.js ESLint: Enforce no-var and autofix 2024-05-21 17:40:52 +01:00
ve.init.MWEditModeTool.js ESLint: Enforce no-var and autofix 2024-05-21 17:40:52 +01:00
ve.init.MWVESwitchPopupWidget.js ESLint: Enforce no-var and autofix 2024-05-21 17:40:52 +01:00
ve.init.MWWelcomeDialog.js Use arrow callbacks with OO.ui.Process 2024-05-01 14:11:55 +01:00
ve.utils.parsoid.js getTargetDataFromHref: catch error if passed invalid URL 2024-06-06 10:57:35 -05:00