diff --git a/src/main/main.js b/src/main/main.js index d09f95be6..accf28754 100644 --- a/src/main/main.js +++ b/src/main/main.js @@ -39,6 +39,9 @@ if (isDebug) { // Misc constants const LATEST_RELEASE_API_URL = 'https://api.github.com/repos/lbryio/lbry-app/releases/latest'; const DAEMON_PATH = process.env.LBRY_DAEMON || path.join(__static, 'daemon/lbrynet-daemon'); +const rendererUrl = isDebug + ? `http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}` + : `file://${__dirname}/index.html` let client = jayson.client.http({ host: 'localhost', @@ -134,7 +137,7 @@ function createWindow () { if (isDebug) { win.webContents.openDevTools(); } - win.loadURL(`file://${__static}/index.html`) + win.loadURL(rendererUrl) if (openUri) { // We stored and received a URI that an external app requested before we had a window object win.webContents.on('did-finish-load', () => { win.webContents.send('open-uri-requested', openUri); diff --git a/src/renderer/main.js b/src/renderer/main.js index 759b2a179..772d66937 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -76,7 +76,7 @@ var init = function() { , - canvas + app ); } @@ -87,7 +87,7 @@ var init = function() { , - canvas + app ); } }; diff --git a/src/renderer/scss/_gui.scss b/src/renderer/scss/_gui.scss index 8a2ba2deb..5adb7686c 100644 --- a/src/renderer/scss/_gui.scss +++ b/src/renderer/scss/_gui.scss @@ -1,3 +1,5 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700); + html { height: 100%; diff --git a/static/index.html b/static/index.html deleted file mode 100644 index eb3946690..000000000 --- a/static/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - LBRY - - - - - - - - - - - - - -
- - -