aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-09-10 20:01:55 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-09-10 20:01:55 -0400
commit628eef55533118b1f2312b86b2ac5f7b64f7fc4a (patch)
tree00747c1b6ee2b9f120108f6d19a5b017c3c1f419 /src/Utils.ts
parentb24c475d8cd36af860fc374b0c5621b0d096be1d (diff)
lots of refactoring, beginning autotagging
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 959b89fe5..71d88683a 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -37,6 +37,11 @@ export class Utils {
public static prepend(extension: string): string {
return window.location.origin + extension;
}
+
+ public static fileUrl(filename: string): string {
+ return this.prepend(`/file/${filename}`);
+ }
+
public static CorsProxy(url: string): string {
return this.prepend(RouteStore.corsProxy + "/") + encodeURIComponent(url);
}