Skip to content

Commit 603e049

Browse files
committed
Support github.com for forge extraction again [fix]
1 parent 20b6635 commit 603e049

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

htmlpreview.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@
9696
const extractForge = function (url) {
9797
let software = null;
9898
let host = null;
99-
if (url.host == 'raw.githubusercontent.com') {
99+
if (url.host == 'raw.githubusercontent.com'
100+
|| url.host == 'github.com') {
100101
software = FORGE_SOFTWARES.GitHub;
101102
host = FORGE_HOSTS.GitHub_com;
102103
} else if (url.host == 'bitbucket.org'

0 commit comments

Comments
 (0)