MCPcopy
hub / github.com/NUKnightLab/TimelineJS3 / transformMediaURL

Function transformMediaURL

src/js/core/Util.js:524–526  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

522 * this subtlety.
523 */
524export function transformMediaURL(url) {
525 return url.replace(/(.*)www.dropbox.com\/(.*)/, '$1dl.dropboxusercontent.com/$2')
526}
527
528export const ratio = {
529 square: (size) => {

Callers 4

getImageURLMethod · 0.90
createMediaMethod · 0.90
_loadMediaMethod · 0.90
createMediaMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected