]> git.frustrated-labs.net Git - nicos-weg-vocab-exporter-firefox.git/commitdiff
feat: export bi-directional definitions
authorAlexander Goussas <[email protected]>
Sun, 5 Apr 2026 12:41:56 +0000 (07:41 -0500)
committerAlexander Goussas <[email protected]>
Sun, 5 Apr 2026 12:41:56 +0000 (07:41 -0500)
Closes #1

panel.js

index a478836fd8b5f7ded8a7f801b745f90c68ff4722..8318e1b2ab43bb86e64fcb6414b7cb68ce9bd7f4 100644 (file)
--- a/panel.js
+++ b/panel.js
@@ -64,7 +64,8 @@ async function doExport(
 `;
 
   for (const { w, t } of results[0].result) {
-    s += `"${w}","${t}"\n`
+    s += `"${w}","${t}"\n`;
+    s += `"${t}","${w}"\n`;
   }
 
   outputField.innerText = s;