diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-15 16:04:26 -0400 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-09-15 16:04:26 -0400 |
commit | 9fb89d8f7d77dd70b2493f730d8b224c994a6e98 (patch) | |
tree | 4353711a08429ddac3ef2a5c57cfdd748b57ceec /ext/bg/js | |
parent | 8b7e293eaecb45918fb024eebb091017a0cdb695 (diff) |
Isolate to background window
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/settings-profiles.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings-profiles.js b/ext/bg/js/settings-profiles.js index 6ff9dda5..624562c6 100644 --- a/ext/bg/js/settings-profiles.js +++ b/ext/bg/js/settings-profiles.js @@ -165,7 +165,7 @@ async function onTargetProfileChanged() { async function onProfileAdd() { const optionsFull = await apiOptionsGetFull(); - const profile = utilIsolate(optionsFull.profiles[currentProfileIndex]); + const profile = utilBackgroundIsolate(optionsFull.profiles[currentProfileIndex]); profile.name = profileOptionsCreateCopyName(profile.name, optionsFull.profiles, 100); optionsFull.profiles.push(profile); currentProfileIndex = optionsFull.profiles.length - 1; @@ -255,8 +255,8 @@ async function onProfileCopyConfirm() { return; } - const profile = utilIsolate(optionsFull.profiles[index].options); - optionsFull.profiles[currentProfileIndex].options = profile; + const profileOptions = utilBackgroundIsolate(optionsFull.profiles[index].options); + optionsFull.profiles[currentProfileIndex].options = profileOptions; await profileOptionsUpdateTarget(optionsFull); await settingsSaveOptions(); |