Add support for marginnoteapp:// URI protocol (#1567)
https://forums.zotero.org/discussion/comment/316070/#Comment_316070
This commit is contained in:
parent
d8b2d24524
commit
dd9ee66212
1 changed files with 2 additions and 1 deletions
|
@ -606,9 +606,10 @@ Zotero.Attachments = new function(){
|
||||||
Kindle (kindle://)
|
Kindle (kindle://)
|
||||||
Logos (logosres:)
|
Logos (logosres:)
|
||||||
Bear (bear://)
|
Bear (bear://)
|
||||||
|
MarginNote (marginnoteapp://)
|
||||||
Zotero (zotero://) */
|
Zotero (zotero://) */
|
||||||
|
|
||||||
var urlRe = /^((https?|zotero|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|bear|ftp):\/\/|logosres:)[^\s]*$/;
|
var urlRe = /^((https?|zotero|evernote|onenote|brain|nv|mlo|kindle|x-devonthink-item|bear|marginnoteapp|ftp):\/\/|logosres:)[^\s]*$/;
|
||||||
var matches = urlRe.exec(url);
|
var matches = urlRe.exec(url);
|
||||||
if (!matches) {
|
if (!matches) {
|
||||||
throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");
|
throw ("Invalid URL '" + url + "' in Zotero.Attachments.linkFromURL()");
|
||||||
|
|
Loading…
Add table
Reference in a new issue