From 36cf7530768eeec286e4a07a5794c0e1b27b8c3f Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 30 Mar 2019 20:11:18 -0400 Subject: Allow Basis.currentUrl on client side --- lib/js/urweb.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/js') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 749e5056..66d427c8 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -3269,6 +3269,10 @@ function confrm(s) { return confirm(s) ? true : false; } +function currentUrl() { + return window.location; +} + // URL blessing -- cgit v1.2.3