matterport-dl icon indicating copy to clipboard operation
matterport-dl copied to clipboard

Offline stops loading at 50%

Open paulb057 opened this issue 1 year ago • 1 comments

I had to make some changes to get my offline to work properly as it was getting stuck on the loading screen. Below is what I did to correct it

sed -i 's|https://static.matterport.com/webgl|webgl|g' showcase.js
sed -i 's|https://static.matterport.com/webgl|webgl|g' showcase-internal.js

While I am not python coder here is my attempt at updating code that can be added to the python (below) and on line 536 adding "patchShowcaseWebGL()"

def patchShowcaseWebGL():
f = open("js/showcase-internal.js", "r", encoding="utf8")
content = f.read()
f.close()
content = re.sub(r'https://static.matterport.com/webgl', 'webgl', content)
f = open("js/showcase-internal.js", "w", encoding="utf8")
f.write(content)
f.close()

f = open("js/showcase.js", "r", encoding="utf8")
content = f.read()
f.close()
content = re.sub(r'https://static.matterport.com/webgl', 'webgl', content)
f = open("js/showcase.js", "w", encoding="utf8")
f.write(content)
f.close()

paulb057 avatar Nov 09 '23 16:11 paulb057

just updated it check it out here

mu-ramadan avatar Dec 06 '23 20:12 mu-ramadan

This should be fixed now, please test again on master and let us know if not

mitchcapper avatar Aug 04 '24 06:08 mitchcapper