fix: default prop of location should be empty str

This commit is contained in:
Cheng Zhao 2018-12-04 17:00:13 +09:00
parent fc4e10b6c0
commit ca7dec2082
4 changed files with 8 additions and 7 deletions

View file

@ -70,7 +70,8 @@ function LocationProxy (ipcRenderer, guestId) {
return {
get: function () {
const guestURL = getGuestURL()
return guestURL ? guestURL[property] : ''
const value = guestURL ? guestURL[property] : ''
return value === undefined ? '' : value
},
set: function (newVal) {
const guestURL = getGuestURL()