zotero://open handler: Decode CFI and selector (#3955)
This commit is contained in:
parent
878fc20cec
commit
398454f85b
1 changed files with 2 additions and 2 deletions
|
@ -1205,13 +1205,13 @@ function ZoteroProtocolHandler() {
|
||||||
location.position = {
|
location.position = {
|
||||||
type: 'FragmentSelector',
|
type: 'FragmentSelector',
|
||||||
conformsTo: 'http://www.idpf.org/epub/linking/cfi/epub-cfi.html',
|
conformsTo: 'http://www.idpf.org/epub/linking/cfi/epub-cfi.html',
|
||||||
value: cfi
|
value: decodeURIComponent(cfi)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if (sel) {
|
else if (sel) {
|
||||||
location.position = {
|
location.position = {
|
||||||
type: 'CssSelector',
|
type: 'CssSelector',
|
||||||
value: sel
|
value: decodeURIComponent(sel)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue