pppppbbbbb
pppppbbbbb
"Uncaught ReferenceError: DOMRect is not defined", source: file:///android_asset/js/Bridge.js (865)
return new DOMRect(rectJson.x, rectJson.y, rectJson.width, rectJson.height);
function constructDOMRect(rectJsonString) { var rectJson = JSON.parse(rectJsonString); var drect = {top:rectJson.y, right:rectJson.x+rectJson.width, bottom:rectJson.y+rectJson.height,left:rectJson.x}; return drect; } I rewrite this fun can save ReadLocator;
> How were you able to fix it? rewrite JS function constructDOMRect(rectJsonString) {}
> do you have a sample code you can send me? assets/Bridge.js --->rewrited function constructDOMRect(rectJsonString) { var rectJson = JSON.parse(rectJsonString); var drect = {top:rectJson.y, right:rectJson.x+rectJson.width, bottom:rectJson.y+rectJson.height,left:rectJson.x}; return drect; }
> Thanks. Much appreciated. you're welcome , Is the problem solved?
can you give me your email? I'll send you the FolioReader lib. but I change something. The lib is used locally. src/folioreaderlib
> > can you give me your email? I'll send you the FolioReader lib. but I change something. > > The lib is used locally. src/folioreaderlib. > > can you...
> > can you give me your email? I'll send you the FolioReader lib. but I change something. > > The lib is used locally. src/folioreaderlib. > > can you...