From 5c99e8fcc88eb53173ab2114477d521aa0986f14 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 26 Aug 2019 13:49:31 -0400 Subject: [PATCH] fix: return window location instead of empty string when doc uri is blank --- ResultListTest.html | 19 ------------------- src/index.js | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 ResultListTest.html diff --git a/ResultListTest.html b/ResultListTest.html deleted file mode 100644 index a7c3e3d..0000000 --- a/ResultListTest.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - -
- -
- -
- - - - - diff --git a/src/index.js b/src/index.js index d7f5f49..7114df6 100644 --- a/src/index.js +++ b/src/index.js @@ -107,7 +107,7 @@ function getDocumentURI() { } else { console.warn('cwrc-git-dialogs: no repo or path set!'); - return ''; + return window.location.href; } }