From 9159479cfada970f2e0a570e38381d24b4218e7e Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Fri, 1 Mar 2019 12:39:02 +0200 Subject: [PATCH] stremio-shell script injected properly --- src/index.html | 2 ++ src/index.js | 4 +++- webpack.config.js | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/index.html b/src/index.html index a13c34edd..d75a3fc33 100755 --- a/src/index.html +++ b/src/index.html @@ -9,6 +9,8 @@
+ + \ No newline at end of file diff --git a/src/index.js b/src/index.js index a22f17594..cfe50f77e 100755 --- a/src/index.js +++ b/src/index.js @@ -2,4 +2,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; -ReactDOM.render(, document.getElementById('app')); +window.runApp = () => { + ReactDOM.render(, document.getElementById('app')); +}; diff --git a/webpack.config.js b/webpack.config.js index cae5f219c..c94b3db05 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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' },