openvidu-electron: fix HTML file path

This commit is contained in:
pabloFuente 2022-07-28 20:24:19 +02:00
parent ebdf7087b0
commit def43a626e
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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()