Skip to content
This repository has been archived by the owner on Jun 23, 2021. It is now read-only.

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx committed Sep 28, 2019
1 parent 233f347 commit 893e13c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IpcExtension } from '../models/ipc-extension';
import { LocalEvent } from '../models/local-event';
import { makeId } from '../utils/string';
import { Port } from '../models/port';
import { getSenderTab } from '../utils/sender';
import { getSenderContent } from '../utils/sender';

export const getRuntime = (extension: IpcExtension, sessionId: number) => ({
lastError: null as any,
Expand All @@ -15,7 +15,7 @@ export const getRuntime = (extension: IpcExtension, sessionId: number) => ({
onInstalled: new LocalEvent(),

sendMessage: (...args: any[]) => {
const sender = getSenderTab(extension.id);
const sender = getSenderContent(extension.id);
const portId = makeId(32);

let extensionId = args[0];
Expand Down Expand Up @@ -62,7 +62,7 @@ export const getRuntime = (extension: IpcExtension, sessionId: number) => ({
},

connect: (...args: any[]) => {
const sender = getSenderTab(extension.id);
const sender = getSenderContent(extension.id);
const portId = makeId(32);

let name: string = null;
Expand Down

0 comments on commit 893e13c

Please sign in to comment.