Routing
This commit is contained in:
parent
e7bd3abadc
commit
b5670d9a71
9 changed files with 149 additions and 106 deletions
|
@ -114,6 +114,10 @@ export const openUrl = (url) => {
|
|||
window.open(url, "_blank", "noopener,noreferrer");
|
||||
};
|
||||
|
||||
export const subscriptionRoute = (subscription) => {
|
||||
return `/${subscription.topic}`;
|
||||
}
|
||||
|
||||
// From: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
|
||||
export async function* fetchLinesIterator(fileURL, headers) {
|
||||
const utf8Decoder = new TextDecoder('utf-8');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue