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

Commit 0cdcb7b

Browse files
committed
Fix: win platform cannot load flash plugin, block it on win
1 parent 232cd7a commit 0cdcb7b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/main.dev.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @flow
1212
*/
1313
import { app, BrowserWindow, ipcMain } from 'electron';
14-
import MenuBuilder from './menu';
1514

1615
let mainWindow = null;
1716

@@ -41,7 +40,7 @@ const installExtensions = async () => {
4140
};
4241

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

0 commit comments

Comments
 (0)