openvidu-electron: fix HTML file path
This commit is contained in:
parent
ebdf7087b0
commit
def43a626e
@ -43,6 +43,7 @@ async function joinSession() {
|
||||
mySessionId = document.getElementById("sessionId").value;
|
||||
|
||||
const token = await getToken(mySessionId);
|
||||
|
||||
await session.connect(token, { clientData: 'OpenVidu Electron' });
|
||||
showSession();
|
||||
session.publish(publisher);
|
||||
@ -80,7 +81,7 @@ function openScreenShareModal() {
|
||||
require("@electron/remote").require("@electron/remote/main").enable(win.webContents);
|
||||
|
||||
win.setMenu(null);
|
||||
win.webContents.openDevTools();
|
||||
// win.webContents.openDevTools();
|
||||
|
||||
var theUrl = 'file://' + __dirname + '/modal.html'
|
||||
win.loadURL(theUrl);
|
||||
|
||||
@ -20,7 +20,7 @@ function createWindow() {
|
||||
require("@electron/remote/main").enable(mainWindow.webContents);
|
||||
|
||||
// and load the index.html of the app.
|
||||
mainWindow.loadFile('index.html')
|
||||
mainWindow.loadFile('src/index.html')
|
||||
|
||||
// Open the DevTools.
|
||||
// mainWindow.webContents.openDevTools()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user