Skip to content

Commit

Permalink
revert: "refactor: get rid of app_key (#1)"
Browse files Browse the repository at this point in the history
This reverts commit 59846fb.
  • Loading branch information
anilanar committed Aug 6, 2020
1 parent 3d4e58c commit fe399eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/messenger-internal/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export interface LegacyOptions {
}

export interface WidgetLoaderSettings {
app_key: string;
widget_key: string;
config: unknown;
}
Expand All @@ -96,6 +97,7 @@ export interface WidgetLoaderSettings {
* For internal use.
*/
export interface WidgetLoader {
app_key: string;
widget_key: string;
config: unknown;

Expand Down
3 changes: 2 additions & 1 deletion packages/messenger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ import {
export const createMessenger: CreateMessenger = async (
opts
): Promise<ActionResult<string, AllApis>> => {
const { createMessenger, widget_key, config } = await loadWidget(
const { createMessenger, app_key, widget_key, config } = await loadWidget(
window,
opts.widgetKey,
opts.baseUrl
);

return createMessenger(opts.version)({
app_key,
widget_key,
config,
});
Expand Down

0 comments on commit fe399eb

Please sign in to comment.