#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import { withBasePath } from "@editor/constants/app";
/** The address setup offers for the server: this page's origin, or empty when
* the page isn't served over http(s). */
export function setupAddressPrefill(): string {
if (!/^https?:$/.test(window.location.protocol)) return "";
return `${window.location.origin}${withBasePath("/")}`.replace(/\/+$/, "");
}