Use "Zotero-Bookmarklet" header instead of "X-Zotero-Bookmarklet"

This commit is contained in:
Simon Kornblith 2012-07-08 18:33:50 -04:00
parent 471af0c8ab
commit 48a8fa352b

View file

@ -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";
}