mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
stremio-shell script injected properly
This commit is contained in:
parent
6839d0cc1f
commit
9159479cfa
3 changed files with 7 additions and 2 deletions
|
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<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>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
@ -2,4 +2,6 @@ import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
ReactDOM.render(<App />, document.getElementById('app'));
|
window.runApp = () => {
|
||||||
|
ReactDOM.render(<App />, document.getElementById('app'));
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebPackPlugin({
|
new HtmlWebPackPlugin({
|
||||||
template: './src/index.html'
|
template: './src/index.html',
|
||||||
|
inject: false
|
||||||
}),
|
}),
|
||||||
new CopyWebpackPlugin([
|
new CopyWebpackPlugin([
|
||||||
{ from: 'images', to: 'images' },
|
{ from: 'images', to: 'images' },
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue