You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
Desktop, Cli, Mobile, Server: Add Joplin Server SAML support (#11865)
This commit is contained in:
9
packages/lib/utils/prefixWithHttps.ts
Normal file
9
packages/lib/utils/prefixWithHttps.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
const prefixWithHttps = (url: string) => {
|
||||
if (!url.startsWith('http://') && !url.startsWith('https://')) {
|
||||
return `https://${url}`;
|
||||
} else {
|
||||
return url;
|
||||
}
|
||||
};
|
||||
|
||||
export default prefixWithHttps;
|
||||
Reference in New Issue
Block a user