]> OzVa Git service - ozva-cloud/commitdiff
chore: js format
authorsigoden <sigoden@gmail.com>
Tue, 14 May 2024 09:04:49 +0000 (09:04 +0000)
committersigoden <sigoden@gmail.com>
Tue, 14 May 2024 09:04:49 +0000 (09:04 +0000)
assets/index.js

index 7e6de9e31de619780420f07458d3559c1a8e975f..de2dc7ce5dc1ff9dd64f3f2bab771220f49cb718 100644 (file)
@@ -886,12 +886,12 @@ async function assertResOK(res) {
 }
 
 function getEncoding(contentType) {
-    const charset = contentType?.split(";")[1];
-    if (/charset/i.test(charset)) {
-      let encoding = charset.split("=")[1];
-      if (encoding) {
-        return encoding.toLowerCase()
-      }
+  const charset = contentType?.split(";")[1];
+  if (/charset/i.test(charset)) {
+    let encoding = charset.split("=")[1];
+    if (encoding) {
+      return encoding.toLowerCase()
     }
-    return 'utf-8'
+  }
+  return 'utf-8'
 }