Load images with cors allowed
Without allowing cors it is e.g. not possible to extract colors from an image
This commit is contained in:
@@ -147,6 +147,7 @@ export const createUpdateReaderPageLoadState =
|
||||
return prevState.toSpliced(index, 1, { url, isSpread: isSpreadPageFlag });
|
||||
});
|
||||
};
|
||||
img.crossOrigin = 'anonymous';
|
||||
img.src = url;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user