#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 { connectionModeService } from "@editor/services/connectionModeService";
/** The self-hosted server this app is signed in to; the webview's own origin
* (http://tauri.localhost on Windows) is the app, never the server. */
export function setupAddressPrefill(): string {
const url = connectionModeService.getCachedServerConfig()?.url ?? "";
return /^https?:\/\//.test(url) ? url.replace(/\/+$/, "") : "";
}