mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-15 03:23:45 +00:00
Use slice instead of substring per code conventions
Change-Id: Id9b08270c377f2b31486dbdb9492b77860f436e7
This commit is contained in:
parent
9018acb6fe
commit
46d76471e1
|
@ -329,7 +329,7 @@
|
|||
box = context.$textarea;
|
||||
lang = mw.config.get( 'wgCodeEditorCurrentLanguage' );
|
||||
basePath = mw.config.get( 'wgExtensionAssetsPath', '' );
|
||||
if ( basePath.substring( 0, 2 ) === '//' ) {
|
||||
if ( basePath.slice( 0, 2 ) === '//' ) {
|
||||
// ACE uses web workers, which have importScripts, which don't like relative links.
|
||||
// This is a problem only when the assets are on another server, so this rewrite should suffice
|
||||
// Protocol relative
|
||||
|
|
Loading…
Reference in a new issue