Uploader online (#26)

This commit is contained in:
Asher
2019-01-30 15:40:01 -06:00
committed by Kyle Carberry
parent 62b1e0ef00
commit ebe5e1b1a9
20 changed files with 430 additions and 264 deletions

View File

@@ -1,3 +1,7 @@
// TODO: ?
import { join } from "path";
// tslint:disable-next-line no-any
(global as any).requireToUrl = (path: string): string => `${location.protocol}//{location.host}/${path}`;
(global as any).requireToUrl = (path: string): string => {
// TODO: can start with vs/...
return join(`${location.protocol}//${location.host}/resource`, path);
};