Răsfoiți Sursa

Removed code that should (hopefully) be deprecated as scripts always have full URLs.

fredck 11 ani în urmă
părinte
comite
dd79ce5bd3
1 a modificat fișierele cu 1 adăugiri și 9 ștergeri
  1. 1 9
      ckeditor.js

+ 1 - 9
ckeditor.js

@@ -3,7 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
-/* global requirejs, define, require, window, document, location */
+/* global requirejs, define, require, window, document */
 
 'use strict';
 
@@ -98,14 +98,6 @@
 			}
 		} );
 
-		if ( path.indexOf( ':/' ) == -1 && path.slice( 0, 2 ) != '//' ) {
-			if ( path[ 0 ] == '/' ) {
-				path = location.href.match( /^.*?:\/\/[^\/]*/ )[ 0 ] + path;
-			} else {
-				path = location.href.match( /^[^\?]*\/(?:)/ )[ 0 ] + path;
-			}
-		}
-
 		return path;
 	}
 } )( window );