File tree 1 file changed +4
-4
lines changed
xp-archive/client/contentView/htmlView
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ type Props = {
10
10
} ;
11
11
12
12
export const HtmlView = ( { versionId, locale } : Props ) => {
13
- const fullscreenPath = `${ xpArchiveConfig . basePath } /html/${ versionId } /${ locale || '' } ` ;
13
+ const htmlPath = `${ xpArchiveConfig . basePath } /html/${ versionId } /${ locale || '' } ` ;
14
14
15
15
return (
16
16
< div className = { style . wrapper } >
17
- < iframe title = { 'HTML-visning' } src = { fullscreenPath } className = { style . iframe } />
17
+ < iframe title = { 'HTML-visning' } src = { htmlPath } className = { style . iframe } />
18
18
< Button
19
19
as = { 'a' }
20
- href = { fullscreenPath }
20
+ href = { htmlPath }
21
21
className = { style . fullscreenButton }
22
22
icon = { < ExpandIcon /> }
23
23
onClick = { ( e ) => {
24
24
e . preventDefault ( ) ;
25
- window . open ( fullscreenPath , '_blank' ) ;
25
+ window . open ( htmlPath , '_blank' ) ;
26
26
} }
27
27
>
28
28
{ 'Åpne i nytt vindu' }
You can’t perform that action at this time.
0 commit comments