Dev: Monitor fetch #24

This commit is contained in:
surunzi
2018-01-02 16:54:31 +08:00
parent b987e64184
commit 2e8d2db756
10 changed files with 6665 additions and 6355 deletions

12
eustia/fullUrl.js Normal file
View File

@@ -0,0 +1,12 @@
_('startWith');
let origin = window.location.origin;
function exports(url)
{
if (startWith(url, 'http')) return url;
if (!startWith(url, '/')) url = '/' + url;
return origin + url;
}