From 93ff850a8d81df5a9f9867286158cfc305e96ace Mon Sep 17 00:00:00 2001 From: Nik Paro Date: Fri, 25 Oct 2019 11:54:02 +0300 Subject: [PATCH] fix: relay IntecomAPI secondary arguments --- src/intercomAPI.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intercomAPI.ts b/src/intercomAPI.ts index 7b0370a..450f760 100644 --- a/src/intercomAPI.ts +++ b/src/intercomAPI.ts @@ -1,6 +1,6 @@ -export default function(method: string, ...args: Array) { +export default function(...args: [string, ...Array]) { if (window.Intercom) { - window.Intercom.apply(null, [method, args]); + window.Intercom.apply(null, args); } else { console.warn('Intercom not initialized yet'); }