Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
MAINT: fix dropbox URLs, adds package-lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ebolyen committed Oct 18, 2023
1 parent 31ce74a commit f32ca94
Show file tree
Hide file tree
Showing 2 changed files with 20,582 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/init/dux.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ export const setRawSource = defineAction(
if (rawSrc !== null && rawSrc.from === 'remote') {
const source = new URL(rawSrc.data);
if (source.hostname === 'www.dropbox.com') {
return {
rawSrc: {
...rawSrc,
data: `https://dl.dropbox.com${source.pathname}?dl=1`
}
};
source.searchParams.set('dl', '1');
const path = `${source.pathname}?${source.searchParams}`
const data = `https://dl.dropboxusercontent.com${path}`
return { rawSrc: { ...rawSrc, data } };
}
}
return ({ rawSrc });
Expand Down
Loading

0 comments on commit f32ca94

Please sign in to comment.