From 81b730ff234176581a4ef92da57e34aad4153ae8 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 2 Oct 2016 11:06:41 -0400 Subject: [PATCH] Remove file name input from index --- index.html | 2 -- js/index.js | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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; + }); });