Open pppppbbbbb opened 4 years ago
"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?
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.
Thanks. Much appreciated.
you're welcome , Is the problem solved?
noo, still not working
Still not getting any output from: @Override public void saveReadLocator(ReadLocator readLocator) { Log.i(LOG_TAG, "-> saveReadLocator -> " + readLocator.toJson());
}
What I have done so far:
Still getting zero output form the method: @override public void saveReadLocator(ReadLocator readLocator) { Log.i(LOG_TAG, "-> saveReadLocator -> " + readLocator.toJson());
}
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 help me too, I'm stuck, cant get it to work :(
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 help me too, I'm stuck, cant get it to work :(
find the .js file rewirte this funtion
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; }
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 help me too, I'm stuck, cant get it to work :(
source: file:///android_asset/js/Bridge.js (865)
@Override public void saveReadLocator(ReadLocator readLocator) { Log.i(LOG_TAG, "-> saveReadLocator -> " + readLocator.toJson());
this fun don't run