Remove XrayWrappers when syncing data. #1652

This commit is contained in:
ccd0 2017-12-09 17:58:19 -08:00
parent 1a9d64fabc
commit 9ddd1f84ba

View File

@ -512,7 +512,7 @@ if GM?.deleteValue? and window.BroadcastChannel and not GM_addValueChangeListene
$.on $.syncChannel, 'message', (e) ->
for key, val of e.data when (cb = $.syncing[key])
cb val, key
cb JSON.parse(JSON.stringify(val)), key
$.sync = (key, cb) ->
$.syncing[key] = cb