Use "Zotero-Bookmarklet" header instead of "X-Zotero-Bookmarklet"
This commit is contained in:
parent
471af0c8ab
commit
48a8fa352b
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ Zotero.Server.DataListener.prototype._headerFinished = function() {
|
|||
if(m) {
|
||||
this.origin = m[1];
|
||||
} else {
|
||||
const bookmarkletRe = /[\r\n]X-Zotero-Bookmarklet: *([^ \r\n]+)/i;
|
||||
const bookmarkletRe = /[\r\n]Zotero-Bookmarklet: *([^ \r\n]+)/i;
|
||||
var m = bookmarkletRe.exec(this.header);
|
||||
if(m) this.origin = "https://www.zotero.org";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue