Convert to image handler hook based viewer insertion

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-10-22 19:58:02 -07:00
parent b31d9f3925
commit 5d90da0fda
3 changed files with 20 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ headElem.appendChild(modelLoad)
let urlProm, dataProm
let isFilePageImage = false
/*
let glbElems = document.querySelectorAll('.mw-body-content [href$=".glb"][title$=".glb"')
if (glbElems.length > 0) {
[...glbElems].forEach((ge, idx) => {
@@ -65,4 +66,5 @@ async function getModelMeta(getTitle) {
"page": getTitle
});
return JSON.parse($(metaApiResp.parse.text['*']).find('pre').text() || '{}')
}
}
*/