Skip to content

Commit

Permalink
execute: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Oct 26, 2023
1 parent 9f14b56 commit 46bb216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Niwango_IFrame_Id = "niwango-iframe";
const commentCanvas = CommentRenderer.getElementsByTagName("canvas")[0];
if (!commentCanvas) throw new Error("failed to get commentCanvas element");
const eventHandlerCanvas = player.getElementsByClassName(
"VideoSymbolContainer-canvas"
"VideoSymbolContainer-canvas",
)[0];
if (!eventHandlerCanvas)
throw new Error("failed to get eventHandlerCanvas element");
Expand All @@ -57,7 +57,7 @@ const Niwango_IFrame_Id = "niwango-iframe";
iframe.srcdoc = Niwango_IFrame_SrcDoc;
iframe.setAttribute(
"style",
"position: absolute;left: 0;top: 0; width: 100%; height: 100%;border: none;"
"position: absolute;left: 0;top: 0; width: 100%; height: 100%;border: none;",
);
iframe.setAttribute("frameborder", "0");
eventHandlerCanvas.after(iframe);
Expand All @@ -83,7 +83,7 @@ const Niwango_IFrame_Id = "niwango-iframe";
loader.innerHTML = "ニワ";
loader.setAttribute(
"style",
"display: inline-block;padding: 4px;border: solid 1px;margin: 4px;cursor:pointer;"
"display: inline-block;padding: 4px;border: solid 1px;margin: 4px;cursor:pointer;",
);
loader.onclick = setup;
loader.id = Niwango_Loader_Id;
Expand All @@ -93,7 +93,7 @@ const Niwango_IFrame_Id = "niwango-iframe";
const init = async () => {
clearInterval(interval);
const commentListTab = Array.from(
await getElement("PlayerPanelContainer-tabItem")
await getElement("PlayerPanelContainer-tabItem"),
).filter((element) => element.innerText === "コメントリスト")[0];
if (!commentListTab)
throw new Error("failed to get commentListTab element");
Expand Down

0 comments on commit 46bb216

Please sign in to comment.