Skip to content

Commit ea2a08f

Browse files
author
luism3861
committed
add variable params
1 parent 6fc9f2e commit ea2a08f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

website/core/RemarkablePlugins.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ function ReactNativeWebPlayer(md) {
127127
if (paramsString) {
128128
hash += `&${paramsString}`;
129129
}
130+
let params = parseParams(paramsString);
130131

131132
return (
132133
'<div class="web-player">' +
133134
htmlForCodeBlock(sampleCode) +
134135
`<iframe style="margin-top: 4" width="100%" height="${
135-
parseParams(paramsString).platform === 'android' ? '425' : '420'
136+
params.platform === 'android' ? '425' : '420'
136137
}" data-src="//cdn.rawgit.com/dabbott/react-native-web-player/gh-v${WEB_PLAYER_VERSION}/index.html${hash}" frame-border="0"></iframe>` +
137138
`</div>` +
138139
'\n\n'

0 commit comments

Comments
 (0)