Bladeren bron

Minor simplification.

fredck 11 jaren geleden
bovenliggende
commit
3d4fbbe485
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      ckeditor.js

+ 1 - 1
ckeditor.js

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