Skip to content

Commit

Permalink
update build.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmerAL committed May 8, 2016
1 parent 6a80c9c commit fbdad2a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ function createWindow() {
sendIPCToWindow(mainWindow, "leave-full-screen");
});

mainWindow.on("app-command", function (e, command) {
if (command == "browser-backward") {
sendIPCToWindow(mainWindow, "goBack");
} else if (command == "browser-forward") {
sendIPCToWindow(mainWindow, "goForward");
}
});

//prevent remote pages from being loaded using drag-and-drop, since they would have node access
mainWindow.webContents.on("will-navigate", function (e, url) {
if (url != browserPage) {
Expand Down Expand Up @@ -481,7 +489,7 @@ function handleRequest(details, callback) {

if (parser.matches(parsedFilterData, details.url, {
domain: "",
elementTypeMaskMap: parser.elementTypes.SCRIPT
elementType: details.resourceType,
})) {
callback({
cancel: true,
Expand Down

0 comments on commit fbdad2a

Please sign in to comment.