pdfをGoogleからmozillaに移動

This commit is contained in:
harukin-OneMix4 2023-12-13 22:39:38 +09:00
parent d5fab2f49b
commit 171df01a0d

View File

@ -3,5 +3,5 @@ import { Platform } from "react-native";
export const getPDFViewURL = (url) => {
if (Platform.OS == "ios") return url;
else
return `https://docs.google.com/viewer?url=${encodeURI(url)}&embedded=true`;
return `https://mozilla.github.io/pdf.js/web/viewer.html?file=${encodeURI(url)}`;
};