tab-seperated modals + eslint fix + much more bug fixed and improvements
This commit is contained in:
+2
-2
@@ -1,4 +1,4 @@
|
||||
export default async (url: string) => {
|
||||
export default async function getTitle(url: string) {
|
||||
const response = await fetch(url);
|
||||
const text = await response.text();
|
||||
|
||||
@@ -6,4 +6,4 @@ export default async (url: string) => {
|
||||
let match = text.match(/<title.*>([^<]*)<\/title>/);
|
||||
if (match) return match[1];
|
||||
else return "";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user