Update probe.js (#44)

This probe has the issue stated in the link below

* https://github.com/mandatoryprogrammer/xsshunter-express/issues/11 

This commit fixes it.
This commit is contained in:
Melih Kaan Yıldız 2023-02-06 20:39:16 +03:00 committed by GitHub
parent 16504bf063
commit b0416990e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,12 +304,25 @@ try {
probe_return_data['injection_key'] = '';
}
probe_return_data['title'] = document.title;
try{
probe_return_data['title'] = document.title;
} catch( e ){
probe_return_data['title'] = '';
}
//probe_return_data['text'] = get_dom_text();
try{
probe_return_data['text'] = get_dom_text();
} catch( e ){
probe_return_data['text'] = '';
}
try{
probe_return_data['was_iframe'] = !(window.top === window)
} catch( e ){
probe_return_data['was_iframe'] = '';
}
probe_return_data['was_iframe'] = !(window.top === window)
async function hook_load_if_not_ready() {
try {