From 7dff5d2e3064f080a0f839299f5ba537bad19e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Fri, 23 Sep 2016 11:21:28 -0700 Subject: [PATCH] Load React Native Web Player from MaxCDN. Summary: unpkg (nee npmcdn) will [no longer serve HTML content with the text/html Content-Type](https://twitter.com/mjackson/status/779147399528718336). We need to switch to another provider to continue supporting the RN Web Player. Closes https://github.com/facebook/react-native/pull/10072 Differential Revision: D3914585 Pulled By: lacker fbshipit-source-id: 69833c157775f2b255f1cd11c5b52140d12a27be --- website/core/WebPlayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/core/WebPlayer.js b/website/core/WebPlayer.js index 2ea320bf8..32477ce02 100644 --- a/website/core/WebPlayer.js +++ b/website/core/WebPlayer.js @@ -12,7 +12,7 @@ var React = require('React'); var Prism = require('Prism'); -var WEB_PLAYER_VERSION = '1.1.0'; +var WEB_PLAYER_VERSION = '1.2.4'; /** * Use the WebPlayer by including a ```ReactNativeWebPlayer``` block in markdown. @@ -59,7 +59,7 @@ var WebPlayer = React.createClass({ style={{marginTop: 4}} width='880' height={this.parseParams(this.props.params).platform === 'android' ? '425' : '420'} - data-src={`//npmcdn.com/react-native-web-player@${WEB_PLAYER_VERSION}/index.html${hash}`} + data-src={`//cdn.rawgit.com/dabbott/react-native-web-player/gh-v${WEB_PLAYER_VERSION}/index.html${hash}`} frameBorder='0' />