mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Convert Dropbox macro to naked js file
@sukima - this avoids duplicating the metadata
This commit is contained in:
parent
317f92b8a2
commit
98f78e50b8
@ -1,10 +1,3 @@
|
||||
created: 20150607235625799
|
||||
modified: 20150608032345215
|
||||
module-type: macro
|
||||
tags: $:/tags/Macro
|
||||
title: $:/edition/tw5.com/dropbox-url.js
|
||||
type: application/javascript
|
||||
|
||||
/*\
|
||||
title: $:/edition/tw5.com/dropbox-url.js
|
||||
type: application/javascript
|
||||
@ -32,7 +25,7 @@ exports.params = [
|
||||
];
|
||||
|
||||
exports.run = function(url) {
|
||||
url = url.replace("www.dropbox.com", "dl.dropboxusercontent.com");
|
||||
url = url.replace("www.dropbox.com","dl.dropboxusercontent.com");
|
||||
return "`" + url + "` <small>([[open|" + url + "]])</small>";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user