We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d36e387 commit d3cb1f7Copy full SHA for d3cb1f7
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -3114,9 +3114,9 @@ function RemoteFunctions(config = {}) {
3114
// its required by the Unsplash API guidelines to track downloads for photographers
3115
// this is just a tracking call, we don't need to wait for the response
3116
if (image.download_location) {
3117
- fetch(image.download_location)
+ fetch(`https://images.phcode.dev/api/images/download?download_location=${encodeURIComponent(image.download_location)}`)
3118
.catch(error => {
3119
- //
+ console.error('download tracking failed:', error);
3120
});
3121
}
3122
0 commit comments