standardize datatype for callback for storage change callack serialization
This commit is contained in:
parent
43fcb29490
commit
c641692295
@ -83,7 +83,11 @@ define(function () {
|
|||||||
// start listening for changes
|
// start listening for changes
|
||||||
window.addEventListener('storage', function (e) {
|
window.addEventListener('storage', function (e) {
|
||||||
changeHandlers.forEach(function (f) {
|
changeHandlers.forEach(function (f) {
|
||||||
f(e);
|
f({
|
||||||
|
key: e.key,
|
||||||
|
oldValue: e.oldValue,
|
||||||
|
newValue: e.newValue,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user