Skip to content

Commit 3a64cd4

Browse files
authored
fix(in-app-browser): remove duplicated method (#4838)
1 parent c40a734 commit 3a64cd4

File tree

1 file changed

+2
-14
lines changed
  • src/@awesome-cordova-plugins/plugins/in-app-browser

1 file changed

+2
-14
lines changed

src/@awesome-cordova-plugins/plugins/in-app-browser/index.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ export type InAppBrowserEventType =
125125
| 'exit'
126126
| 'beforeload'
127127
| 'message'
128-
| 'customscheme';
128+
| 'customscheme'
129+
| string
129130

130131
export interface InAppBrowserEvent extends Event {
131132
/** the event name */
@@ -245,19 +246,6 @@ export class InAppBrowserObject {
245246
});
246247
}
247248

248-
/**
249-
* A method that allows you to listen to events happening in the browser.
250-
*
251-
* @param event {string} Name of the event
252-
* @returns {Observable<InAppBrowserEvent>} Returns back an observable that will listen to the event on subscribe, and will stop listening to the event on unsubscribe.
253-
*/
254-
@InstanceCheck()
255-
on(event: string): Observable<InAppBrowserEvent> {
256-
return new Observable<InAppBrowserEvent>((observer: Observer<InAppBrowserEvent>) => {
257-
this._objectInstance.addEventListener(event, observer.next.bind(observer));
258-
return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer));
259-
});
260-
}
261249
}
262250

263251
/**

0 commit comments

Comments
 (0)