cache lastwebprefs

This commit is contained in:
Hari Juturu 2018-07-02 08:29:48 -07:00 committed by Electron Bot
parent 32e40cb4c3
commit f63e5ffa65

View file

@ -250,8 +250,9 @@ const attachGuest = function (event, elementInstanceId, guestInstanceId, params)
])
// Inherit certain option values from embedder
const lastWebPreferences = embedder.getLastWebPreferences()
for (const [name, value] of inheritedWebPreferences) {
if (embedder.getLastWebPreferences()[name] === value) {
if (lastWebPreferences[name] === value) {
webPreferences[name] = value
}
}