From dd5e756e6eec2eddd08ed65b163de0d2a9408cd9 Mon Sep 17 00:00:00 2001 From: Chris Royer Date: Tue, 18 Feb 2020 15:33:37 -0600 Subject: [PATCH] Update index.js custom useragent to re-enable use. --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bbffa9c..be96134 100644 --- a/index.js +++ b/index.js @@ -13,7 +13,7 @@ function createWindow() { win = new BrowserWindow({width: 800, height: 600, titleBarStyle: 'hidden'}); // and load the index.html of the app. - win.loadURL('https://www.youtube.com/tv'); + win.loadURL('https://www.youtube.com/tv',{userAgent: 'Mozilla/5.0 (SMART-TV; Linux; Tizen 5.0) AppleWebKit/538.1 (KHTML, like Gecko) Version/5.0 NativeTVAds Safari/538.1'}); // Open the DevTools. // win.webContents.openDevTools(); @@ -50,4 +50,4 @@ app.on('activate', () => { }); // In this file you can include the rest of your app's specific main process -// code. You can also put them in separate files and require them here. \ No newline at end of file +// code. You can also put them in separate files and require them here.