2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-31 14:05:14 +00:00

The firefox bug has been fixed

This commit is contained in:
nanaya
2024-12-15 20:59:13 +09:00
parent 8c7cdfa3a6
commit c9ddb0f675

View File

@@ -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)