forked from rDrama/rDrama
dont use replacestate, it fucks shit up
parent
0cfb196b08
commit
7a39560f21
|
@ -645,10 +645,7 @@ if (screen_width <= 768) {
|
||||||
if (object) {
|
if (object) {
|
||||||
object.addEventListener('shown.bs.modal', function (e) {
|
object.addEventListener('shown.bs.modal', function (e) {
|
||||||
const new_href = `${location.href.split('#')[0]}#m-${e.target.id}`
|
const new_href = `${location.href.split('#')[0]}#m-${e.target.id}`
|
||||||
if (location.hash)
|
history.pushState({}, '', new_href)
|
||||||
history.replaceState({}, '', new_href)
|
|
||||||
else
|
|
||||||
history.pushState({}, '', new_href)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
object.addEventListener('hide.bs.modal', function (e) {
|
object.addEventListener('hide.bs.modal', function (e) {
|
||||||
|
|
Loading…
Reference in New Issue