From c9ddb0f6754d114cec368d24ea25ec04fafff4ce Mon Sep 17 00:00:00 2001 From: nanaya Date: Sun, 15 Dec 2024 20:59:13 +0900 Subject: [PATCH] The firefox bug has been fixed --- app/javascript/src/classes/url_hash_handler.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/javascript/src/classes/url_hash_handler.coffee b/app/javascript/src/classes/url_hash_handler.coffee index ed799e95..fb7619f0 100644 --- a/app/javascript/src/classes/url_hash_handler.coffee +++ b/app/javascript/src/classes/url_hash_handler.coffee @@ -134,10 +134,7 @@ export default class UrlHashHandler s get_raw_hash: -> - # Firefox doesn't handle window.location.hash correctly; it decodes the contents, - # where all other browsers give us the correct data. http://stackoverflow.com/questions/1703552 - pre_hash_part = window.location.href.split('#', 1)[0] - window.location.href.substr pre_hash_part.length + window.location.hash.slice(1) set_raw_hash: (hash) -> query_params = @parse(hash)