diff --git a/index.html b/index.html
index 58bb225..3fac954 100644
--- a/index.html
+++ b/index.html
@@ -26,8 +26,6 @@
-
-
diff --git a/js/index.js b/js/index.js
index 38cbec9..c200a54 100644
--- a/js/index.js
+++ b/js/index.js
@@ -27,6 +27,12 @@ $("#form").submit((event) => {
let repo = $("#repo").val();
let branch = $("#branch").val();
- let file = $("#file").val();
- window.location.href = `/type.html#${repo}/${branch}/${file}`;
+
+ localforage.setItem(`${repo}/${branch}`, {})
+ .then(() => {
+ window.location.href = `/repo.html#${repo}/${branch}`;
+ })
+ .catch((e) => {
+ throw e;
+ });
});