From fb9c1001b053939b2fce715ba139e41e3374e163 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Mon, 15 Aug 2016 13:34:01 -0700 Subject: [PATCH] Fix(code-uri): use href instead of search to remove code uri --- client/utils/code-uri.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/utils/code-uri.js b/client/utils/code-uri.js index 715b034ba0..99572b3f68 100644 --- a/client/utils/code-uri.js +++ b/client/utils/code-uri.js @@ -65,7 +65,7 @@ export function getCodeUri(location, decodeURIComponent) { export function removeCodeUri(location, history) { if ( - typeof location.search.split !== 'function' || + typeof location.href.split !== 'function' || typeof history.replaceState !== 'function' ) { return false; @@ -73,7 +73,7 @@ export function removeCodeUri(location, history) { history.replaceState( history.state, null, - location.search.split('?')[0] + location.href.split('?')[0] ); return true; }