This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 974
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auditors @bbondy
- Loading branch information
Showing
1 changed file
with
3 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -430,18 +430,9 @@ class Frame extends ImmutableComponent { | |
} | ||
|
||
clone (args) { | ||
const newGuest = this.webview.clone() | ||
const newGuestInstanceId = newGuest.getWebPreferences().guestInstanceId | ||
let cloneAction | ||
if (args && args.get('back')) { | ||
cloneAction = newGuest.goBack | ||
} else if (args && args.get('forward')) { | ||
cloneAction = () => newGuest.goForward | ||
} | ||
if (cloneAction) { | ||
newGuest.once('did-attach', cloneAction.bind(newGuest)) | ||
} | ||
windowActions.cloneFrame(this.frame, newGuestInstanceId, args && args.get('openInForeground')) | ||
this.webview.clone((tab) => { | ||
console.log(tab) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bridiver
Author
Collaborator
|
||
}) | ||
} | ||
|
||
handleShortcut () { | ||
|
1 comment
on commit b9ec9a5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice cleanup to frame.js thanks!
We should probably remove this log though pls.