Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Commit

Permalink
Fix: win platform cannot load flash plugin, block it on win
Browse files Browse the repository at this point in the history
  • Loading branch information
phobal committed Jan 15, 2019
1 parent 232cd7a commit 0cdcb7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @flow
*/
import { app, BrowserWindow, ipcMain } from 'electron';
import MenuBuilder from './menu';

let mainWindow = null;

Expand Down Expand Up @@ -41,7 +40,7 @@ const installExtensions = async () => {
};

// Try to append Pepper flash. See https://github.com/electron/electron/blob/master/docs/tutorial/using-pepper-flash-plugin.md
if (app.getPath("pepperFlashSystemPlugin")) {
if (process.platform === 'darwin' && app.getPath("pepperFlashSystemPlugin")) {
app.commandLine.appendSwitch(
"ppapi-flash-path",
app.getPath("pepperFlashSystemPlugin")
Expand Down

0 comments on commit 0cdcb7b

Please sign in to comment.