Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -43,10 +43,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getPath = url => {
|
const getPath = url => {
|
||||||
if (url.substring(0, 4) === 'http') {
|
try {
|
||||||
return '/' + url.split('/').splice(3).join('/');
|
return new URL(url).pathname;
|
||||||
|
} catch (e) {
|
||||||
|
return url;
|
||||||
}
|
}
|
||||||
return url;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPayload = () => ({
|
const getPayload = () => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user