Skip to content

Commit e2c7ca5

Browse files
replace missing server -> ugc url in screenshots (#774)
1 parent daee17e commit e2c7ca5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

screenshots.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function initScreenshotControls() {
147147
}
148148

149149
function viewScreenshot(url, date, screenshotData, lastModal) {
150-
const isRemote = url.startsWith(serverUrl);
150+
const isRemote = url.startsWith(ugcUrl);
151151
const isTemp = isRemote && url.includes('/temp/');
152152

153153
const screenshot = document.createElement('img');
@@ -240,7 +240,7 @@ function viewScreenshot(url, date, screenshotData, lastModal) {
240240
}
241241

242242
async function downloadScreenshot(url, date, screenshotData, resized) {
243-
if (url.startsWith(serverUrl)) {
243+
if (url.startsWith(ugcUrl)) {
244244
fetch(url).then(response => response.blob()).then(async blob => {
245245
const blobUrl = URL.createObjectURL(blob);
246246
await downloadScreenshot(blobUrl, date, screenshotData, resized);

0 commit comments

Comments
 (0)