Skip to content

Commit

Permalink
gestion fichiers hébergés sur pad gouv
Browse files Browse the repository at this point in the history
  • Loading branch information
eyssette committed Oct 25, 2024
1 parent 6710ab7 commit d9a107a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
encodageHash = encodageHash.replace('/blob/', '/');
}
// gestion des fichiers hébergés sur codiMD / hedgedoc / digipage
if (encodageHash.startsWith('https://codimd') || encodageHash.includes("hedgedoc") || encodageHash.includes("digipage")) {
if (encodageHash.startsWith('https://codimd') || encodageHash.startsWith("https://pad.numerique.gouv.fr/") || encodageHash.includes("hedgedoc") || encodageHash.includes("digipage")) {
addCorsProxy = false;
encodageHash = encodageHash.replace('?edit','').replace('?both','').replace('?view','').replace(/#$/,'').replace(/\/$/,'');
encodageHash = encodageHash.indexOf("download") === -1 ? encodageHash + "/download" : encodageHash;
Expand Down

0 comments on commit d9a107a

Please sign in to comment.