aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 60f18eac2..a842f5a20 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -42,6 +42,10 @@ export class Utils {
return this.prepend(`/files/${filename}`);
}
+ public static shareUrl(documentId: string): string {
+ return this.prepend(`/doc/${documentId}?sharing=true`);
+ }
+
public static CorsProxy(url: string): string {
return this.prepend(RouteStore.corsProxy + "/") + encodeURIComponent(url);
}