Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Set location to src on session restore load. Fixes #131
Browse files Browse the repository at this point in the history
I feel like there's probably a better way to do this so we can preserve
the original src, but I don't think there is exposed by electron today.
This should be fine for now though.

Added a note into the tests issue for this for session store.

Auditors: @bridiver
  • Loading branch information
bbondy committed Jan 11, 2016
1 parent c14cdb3 commit 0896049
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ module.exports.cleanSessionData = (sessionData) => {
frame.canGoBack = false
frame.canGoForward = false

// Set the frame src to the last visited location
// or else users will see the first visited URL.
frame.src = frame.location

// If a blob is present for the thumbnail, create the object URL
if (frame.thumbnailBlob) {
try {
Expand Down

0 comments on commit 0896049

Please sign in to comment.