mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +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>
|
||||
<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>
|
||||
|
|
@ -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'));
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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' },
|
||||
|
|
|
|||
Loading…
Reference in a new issue