feat(external-local-storage): support

This commit is contained in:
Hristo Terezov
2020-09-25 17:51:54 -05:00
parent 014f3b615f
commit dc6d3daef7
9 changed files with 229 additions and 95 deletions

View File

@@ -1026,6 +1026,19 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that the localStorage has changed.
*
* @param {string} localStorageContent - The new localStorageContent.
* @returns {void}
*/
notifyLocalStorageChanged(localStorageContent: string) {
this._sendEvent({
name: 'local-storage-changed',
localStorageContent
});
}
/**
* Disposes the allocated resources.
*