stremio-shell script injected properly

This commit is contained in:
NikolaBorislavovHristov 2019-03-01 12:39:02 +02:00
parent 6839d0cc1f
commit 9159479cfa
3 changed files with 7 additions and 2 deletions

View file

@ -9,6 +9,8 @@
<body>
<div id="app"></div>
<script type="text/javascript" src="/stremio-web.js"></script>
<script type="text/javascript" src="qrc:///stremio-shell.js" onerror="window.runApp();"></script>
</body>
</html>

View file

@ -2,4 +2,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
window.runApp = () => {
ReactDOM.render(<App />, document.getElementById('app'));
};

View file

@ -98,7 +98,8 @@ module.exports = {
},
plugins: [
new HtmlWebPackPlugin({
template: './src/index.html'
template: './src/index.html',
inject: false
}),
new CopyWebpackPlugin([
{ from: 'images', to: 'images' },