8
0
Pārlūkot izejas kodu

Minor simplification.

fredck 11 gadi atpakaļ
vecāks
revīzija
3d4fbbe485
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      ckeditor.js

+ 1 - 1
ckeditor.js

@@ -100,7 +100,7 @@
 		} );
 		} );
 
 
 		if ( path.indexOf( ':/' ) == -1 && path.slice( 0, 2 ) != '//' ) {
 		if ( path.indexOf( ':/' ) == -1 && path.slice( 0, 2 ) != '//' ) {
-			if ( path.indexOf( '/' ) === 0 ) {
+			if ( path[ 0 ] == '/' ) {
 				path = location.href.match( /^.*?:\/\/[^\/]*/ )[ 0 ] + path;
 				path = location.href.match( /^.*?:\/\/[^\/]*/ )[ 0 ] + path;
 			} else {
 			} else {
 				path = location.href.match( /^[^\?]*\/(?:)/ )[ 0 ] + path;
 				path = location.href.match( /^[^\?]*\/(?:)/ )[ 0 ] + path;