Skip to content

Commit a42a4c7

Browse files
committed
add logger
1 parent 5dc6bbd commit a42a4c7

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/index.android.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ class EditorInstance {
9595
}}
9696
onShowNote={() => {
9797
this._postMessage({ action: 'showNote' });
98+
}}
99+
onOpenTab={() => {
100+
98101
}}
99102
onOpenWindow={() => {
100103

src/index.dev.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ function main(html) {
224224
onShowNote={() => {
225225
console.log('Show Note');
226226
}}
227+
onOpenTab={() => {
228+
console.log('Open Tab');
229+
}}
227230
onOpenWindow={() => {
228231
console.log('Open Window');
229232
}}

src/index.ios.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ class EditorInstance {
9595
}}
9696
onShowNote={() => {
9797
this._postMessage({ action: 'showNote' });
98+
}}
99+
onOpenTab={() => {
100+
98101
}}
99102
onOpenWindow={() => {
100103

src/index.web.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ class EditorInstance {
119119
}}
120120
onShowNote={() => {
121121
this._postMessage({ action: 'showNote' });
122+
}}
123+
onOpenTab={() => {
124+
122125
}}
123126
onOpenWindow={() => {
124127

0 commit comments

Comments
 (0)