Skip to content

Commit

Permalink
feat: GistでもGitHub本体と同じく対応 closed #50
Browse files Browse the repository at this point in the history
`<relative-time>`への包括的な対応によって追加するだけで可能になりました。
  • Loading branch information
ncaq committed Aug 5, 2023
1 parent 2ba4601 commit 050366b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ import StackExchange from "./StackExchange";
*/
function detect(): Site | undefined {
// GitHub
if (window.location.hostname === "github.com") {
if (
window.location.hostname === "github.com" ||
window.location.hostname === "gist.github.com"
) {
return new GitHub();
}

Expand Down

0 comments on commit 050366b

Please sign in to comment.