Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 190c8c2

Browse files
Update mobile ASSIMP Viewer
1 parent fc7bf4a commit 190c8c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

viewers/templates/Mobile/MASSIMP Viewer.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,11 @@
12401240

12411241
for (let i = 0; i < urls.length; i++) {
12421242
let url = urls[ i ].trim();
1243+
1244+
if (url.startsWith('https://github.com') === true) {
1245+
url = ( url.replace('github.com', 'raw.githubusercontent.com') ).replace('blob/', '');
1246+
}
1247+
12431248
let url_uc = url.toUpperCase();
12441249

12451250
if (url_uc.endsWith('.GLTF') || url_uc.endsWith('.GLB') || url_uc.endsWith('.VRM')) {

0 commit comments

Comments
 (0)