File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change
1
+ const base = new URL ( location . href ) . origin ;
1
2
export const SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST = [
2
3
{
3
4
label : 'text' ,
@@ -18,24 +19,24 @@ export const SHARE_TARGET_PICKER_FIXED_ARGUMENT_LIST = [
18
19
label : 'image' ,
19
20
value : {
20
21
type : 'image' ,
21
- originalContentUrl : `${ location . href } assets/stp_image.png` ,
22
- previewImageUrl : `${ location . href } assets/stp_image.png` ,
22
+ originalContentUrl : `${ base } / assets/stp_image.png` ,
23
+ previewImageUrl : `${ base } / assets/stp_image.png` ,
23
24
} ,
24
25
} ,
25
26
{
26
27
label : 'video' ,
27
28
value : {
28
29
type : 'video' ,
29
- originalContentUrl : `${ location . href } assets/stp_video.mp4` ,
30
- previewImageUrl : `${ location . href } assets/stp_video.mp4` ,
30
+ originalContentUrl : `${ base } / assets/stp_video.mp4` ,
31
+ previewImageUrl : `${ base } / assets/stp_video.mp4` ,
31
32
trackingId : 'track-id' ,
32
33
} ,
33
34
} ,
34
35
{
35
36
label : 'audio' ,
36
37
value : {
37
38
type : 'audio' ,
38
- originalContentUrl : `${ location . href } assets/stp_audio.mp3` ,
39
+ originalContentUrl : `${ base } / assets/stp_audio.mp3` ,
39
40
duration : 60000 ,
40
41
} ,
41
42
} ,
You can’t perform that action at this time.
0 commit comments