I am getting error Failed to load resource: net::ERR_INVALID_ARGUMENT    

this error while loading 
-- 
wwwimages.adobe.com/www.adobe.com/swf/software/flash/about/flash_about_793x170.swf:1
 
Failed to load resource: net::ERR_INVALID_ARGUMENT


const {app, BrowserWindow} = require('electron') 
const {Menu} =require('electron') 
const path = require('path');
const url = require('url') 


let mainWindow;

 app.on('window-all-closed', function () {
  if (process.platform != 'darwin')
    app.quit();
}); 

//app.setAccessibilitySupportEnabled(true);

let ppapi_flash_path;

// Specify flash path.
// On Windows, it might be /path/to/pepflashplayer.dll
// On OS X, /path/to/PepperFlashPlayer.plugin
// On Linux, /path/to/libpepflashplayer.so


if (process.platform == 'win32') {
  
// ppapi_flash_path = path.join(__dirname, 'pepflashplayer32_32_0_0_270.dll');
  ppapi_flash_path = path.join(__dirname, 
'./Flash/pepflashplayer64_32_0_0_270.dll');
  console.log("PATH HERE IS : " + ppapi_flash_path);
} else if (process.platform == 'linux') {
  ppapi_flash_path = path.join(__dirname, 'libpepflashplayer.so');
} else if (process.platform == 'darwin') {
  ppapi_flash_path = path.join(__dirname, 'PepperFlashPlayer.plugin');
}


app.commandLine.appendSwitch('ppapi-flash-path', ppapi_flash_path);


// Specify flash version, for example, v18.0.0.203
//app.commandLine.appendSwitch('ppapi-flash-version', '32.0.0.270');

app.on('ready', function () {
  mainWindow = new BrowserWindow({
    'width': 800,
    'height': 600,
    'webPreferences': { 'plugins': true }
  }); 

  try {
  
// 
mainWindow.loadURL('https://www.dhs.state.il.us/accessibility/tests/flash/video.html');
    mainWindow.loadURL('http://www.adobe.com/software/flash/about/');
  
  }
  catch (e) {
    console.error(e);
  }

  //mainWindow.loadURL(`file://${__dirname}/index.html`);
});



if (process.env.NODE_ENV !== 'production') {
  const mainMenuTemplate = [{
    label: "Developer Tools",
    submenu: [
      {
        label: "Toggle DevTools",
        accelerator: process.platform == 'darwin' ? 'Command+I' : 'Ctrl+I',
        click(item, focusedWindow) {
          focusedWindow.toggleDevTools();
        }
      },
      {
        role: 'reload'
      }]
  }];

  const mainMenu = Menu.buildFromTemplate(mainMenuTemplate);
  Menu.setApplicationMenu(mainMenu);
}

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/cba68dee-d427-47f4-9b97-86674b585a68%40googlegroups.com.

Reply via email to