Skip to content

Commit

Permalink
Merge remote-tracking branch 'hc/mv3'
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoNishi committed Sep 21, 2023
2 parents 95b9c23 + dce6a96 commit aa27fe4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Hyperchat.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
// Doesn't work well with onMount, so onLoad will have to do
// Update: use onMount because hc now mounts in content script
const onLoad = () => {
const onLoad = (): (() => void) | undefined => {
document.head.appendChild(styleElem);
styleElem.innerHTML = `
${inline1}
Expand Down
5 changes: 4 additions & 1 deletion src/ts/typings/chat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ declare namespace Chat {
success: boolean;
failReason?: string;
}
interface Ping {
type: 'ping';
}

interface chatUserActionResponse {
type: 'chatUserActionResponse';
Expand All @@ -79,7 +82,7 @@ declare namespace Chat {

type BackgroundResponse =
Actions | InitialData | ThemeUpdate | LtlMessageResponse |
registerClientResponse | executeChatActionMsg | chatUserActionResponse;
registerClientResponse | executeChatActionMsg | chatUserActionResponse | Ping;

type InterceptorSource = 'ytc' | 'ltlMessage';

Expand Down

0 comments on commit aa27fe4

Please sign in to comment.