Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/firefox-id-not-valid-selector'
Browse files Browse the repository at this point in the history
  • Loading branch information
cawa-93 committed Sep 13, 2019
2 parents 41a2a8d + d0ff20e commit 86be74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content-scripts/shikimori-watch-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function main() {
/** @type {HTMLAnchorElement} */
let WatchOnlineButton = document
.body
.querySelector<HTMLAnchorElement>(`#${chrome.runtime.id} #watch-online-button`);
.querySelector<HTMLAnchorElement>(`#play-shiki-online #watch-online-button`);

if (!infoSection || WatchOnlineButton) {
return;
Expand Down Expand Up @@ -136,7 +136,7 @@ function createButton(infoSection: HTMLElement): HTMLAnchorElement {
const WatchButtonSection = document.createElement('section');
WatchButtonSection.classList.add('block');
WatchButtonSection.classList.add('watch-online-block');
WatchButtonSection.id = chrome.runtime.id;
WatchButtonSection.id = 'play-shiki-online';
WatchButtonSection.innerHTML = `
<div class="subheadline m10">Онлайн просмотр</div>
<a id="watch-online-button" class="b-link_button dark b-ajax" style="cursor: wait;user-select: none;">
Expand Down

0 comments on commit 86be74e

Please sign in to comment.