mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
DesktopArticleTarget.init: Remove error logging for URL errors
Detailed logging is no longer needed after T328094 was resolved. Change-Id: I49fa8598aa442445e12e553ebfd6680d9fe12a1b
This commit is contained in:
parent
99b326286c
commit
d8c3d007ff
|
@ -853,15 +853,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
var linkUrl;
|
||||
try {
|
||||
linkUrl = new URL( this.href );
|
||||
} catch ( err ) {
|
||||
var customErr = new Error( 'URL error when parsing value: ' + JSON.stringify( this.href ) );
|
||||
customErr.name = 'VeUrlError';
|
||||
mw.errorLogger.logError( customErr, 'error.visualeditor' );
|
||||
return;
|
||||
}
|
||||
var linkUrl = new URL( this.href );
|
||||
if ( linkUrl.searchParams.has( 'action' ) ) {
|
||||
linkUrl.searchParams.delete( 'action' );
|
||||
linkUrl.searchParams.set( 'veaction', 'editsource' );
|
||||
|
@ -1246,15 +1238,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
var linkUrl;
|
||||
try {
|
||||
linkUrl = new URL( e.target.href );
|
||||
} catch ( err ) {
|
||||
var customErr = new Error( 'URL error when parsing value: ' + JSON.stringify( e.target.href ) );
|
||||
customErr.name = 'VeUrlError';
|
||||
mw.errorLogger.logError( customErr, 'error.visualeditor' );
|
||||
return;
|
||||
}
|
||||
var linkUrl = new URL( e.target.href );
|
||||
var title = mw.Title.newFromText( linkUrl.searchParams.get( 'title' ) || '' );
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue