Fix openerTabId warning on Android

jh-changes
robsmith11 6 years ago
parent 59dd41b479
commit 127247ca34
  1. 7
      src/background/usecases/LinkUseCase.ts

@ -12,8 +12,9 @@ export default class LinkUseCase {
} }
openNewTab(url: string, openerId: number, background: boolean): Promise<any> { openNewTab(url: string, openerId: number, background: boolean): Promise<any> {
return this.tabPresenter.create(url, { // openerTabId not supported on Android
openerTabId: openerId, active: !background let properties = typeof browser.tabs.Tab === "object" ?
}); { openerTabId: openerId, active: !background } : { active: !background };
return this.tabPresenter.create(url, properties);
} }
} }