File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -1281,22 +1281,17 @@ class Repository {
1281
1281
// Relative to current file showing
1282
1282
href = href . replace ( "./" , "" ) ;
1283
1283
href = root ? root + "/" + href : href ;
1284
- if ( window . branch ) {
1285
- href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@" + branch ;
1286
- } else {
1287
- href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@" ;
1288
- }
1289
1284
} else if ( href [ 0 ] == "/" ) {
1290
1285
// Relative to repository root
1291
1286
href = href . replace ( "/" , "" ) ;
1292
- if ( window . branch ) {
1293
- href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@" + branch ;
1294
- } else {
1295
- href = "/1GitLiXB6t5r8vuU2zC6a8GYj9ME6HMQ4t/repo/file/?" + address + "/" + href + "@" ;
1296
- }
1287
+ } else {
1288
+ return this . __proto__ . image . call ( this , href , title , text ) ; // super() analog
1297
1289
}
1298
1290
1299
- return this . __proto__ . image . call ( this , href , title , text ) ; // super() analog
1291
+ let node = document . createElement ( "div" ) ;
1292
+ node . className = "image-placeholder" ;
1293
+ node . textContent = "Loading " + ( title || href ) ;
1294
+ return node . outerHTML ;
1300
1295
} ;
1301
1296
renderer . text = function ( text ) {
1302
1297
return text
You can’t perform that action at this time.
0 commit comments