File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ import {
51
51
DIFF_STYLES ,
52
52
SYNC_PHASE_PROPERTIES ,
53
53
SYNC_ITEM_PROPERTIES ,
54
+ DEFAULT_PROTOCOL ,
54
55
} from '../../config/constants' ;
55
56
import {
56
57
diffString ,
@@ -247,6 +248,13 @@ class SyncScreen extends Component {
247
248
248
249
// compare images using thumbnail url
249
250
const change = diffString ( localThumbnailUrl , remoteThumbnailUrl ) ;
251
+
252
+ // append default protocol to display image
253
+ let fullRemoteThumbnailUrl = remoteThumbnailUrl ;
254
+ if ( fullRemoteThumbnailUrl . startsWith ( '//' ) ) {
255
+ fullRemoteThumbnailUrl = `${ DEFAULT_PROTOCOL } :${ fullRemoteThumbnailUrl } ` ;
256
+ }
257
+
250
258
return (
251
259
< >
252
260
< Grid
@@ -274,11 +282,11 @@ class SyncScreen extends Component {
274
282
} ) }
275
283
xs = { 6 }
276
284
>
277
- { remoteThumbnailUrl . length ? (
285
+ { fullRemoteThumbnailUrl . length ? (
278
286
< img
279
287
alt = { t ( 'Remote Space Image' ) }
280
288
className = { classes . spaceImage }
281
- src = { remoteThumbnailUrl }
289
+ src = { fullRemoteThumbnailUrl }
282
290
/>
283
291
) : null }
284
292
</ Grid >
You can’t perform that action at this time.
0 commit comments