mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
tweaking nin theme
This commit is contained in:
parent
72766919ab
commit
299772ee88
@ -404,8 +404,6 @@ function openConversationModal(e)
|
|||||||
|
|
||||||
function watchHashChange(e)
|
function watchHashChange(e)
|
||||||
{
|
{
|
||||||
var hashstring = window.location.hash
|
|
||||||
hashstring = decodeURIComponent(hashstring);
|
|
||||||
|
|
||||||
if(e!=null){
|
if(e!=null){
|
||||||
var prevurlsplit = e.oldURL.split('#');
|
var prevurlsplit = e.oldURL.split('#');
|
||||||
@ -427,6 +425,14 @@ function watchHashChange(e)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
loadModalFromHash();
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadModalFromHash(){
|
||||||
|
|
||||||
|
var hashstring = window.location.hash
|
||||||
|
hashstring = decodeURIComponent(hashstring);
|
||||||
|
|
||||||
var hashdata = hashstring.split(':');
|
var hashdata = hashstring.split(':');
|
||||||
if (hashdata[0] != '#web+twister') {
|
if (hashdata[0] != '#web+twister') {
|
||||||
hashdata = hashstring.match(/(hashtag|profile|mentions|directmessages|following)\?(?:user|hashtag)=(.+)/);
|
hashdata = hashstring.match(/(hashtag|profile|mentions|directmessages|following)\?(?:user|hashtag)=(.+)/);
|
||||||
@ -451,8 +457,8 @@ function watchHashChange(e)
|
|||||||
} else{
|
} else{
|
||||||
closeModalHandler();
|
closeModalHandler();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function initHashWatching()
|
function initHashWatching()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user