mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
editor: enable passing custom sessionId
This commit is contained in:
@@ -169,14 +169,15 @@ export function logger(
|
||||
|
||||
export function post<T extends keyof typeof EventTypes>(
|
||||
type: (typeof EventTypes)[T],
|
||||
value?: unknown
|
||||
value?: unknown,
|
||||
sessionId?: string
|
||||
): void {
|
||||
if (isReactNative()) {
|
||||
window.ReactNativeWebView.postMessage(
|
||||
JSON.stringify({
|
||||
type,
|
||||
value: value,
|
||||
sessionId: globalThis.sessionId
|
||||
sessionId: sessionId || globalThis.sessionId
|
||||
})
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user