diff --git a/umalauncher/carrotjuicer.py b/umalauncher/carrotjuicer.py index 1c83052..96d42a4 100644 --- a/umalauncher/carrotjuicer.py +++ b/umalauncher/carrotjuicer.py @@ -502,12 +502,15 @@ def handle_response(self, message, is_json=False): status_ids = data['chara_info']['chara_effect_id_array'] if status_ids: self.browser.execute_script(""" - arguments[0].parentElement.querySelectorAll('div[data-tippy-root] span[class^="utils_linkcolor"]') - .forEach(el => { - if (arguments[1].includes(el.textContent.trim())) { - el.style.color = 'gray'; - } - }); + if(arguments[0]) + { + arguments[0].parentElement.querySelectorAll('div[data-tippy-root] span[class^="utils_linkcolor"]') + .forEach(el => { + if (arguments[1].includes(el.textContent.trim())) { + el.style.color = 'gray'; + } + }); + } """, event_element, [self.status_name_dict[i] for i in status_ids if i in self.status_name_dict]) if 'reserved_race_array' in data and 'chara_info' not in data and self.last_helper_data: diff --git a/umalauncher/version.py b/umalauncher/version.py index 4118490..4cd27e3 100644 --- a/umalauncher/version.py +++ b/umalauncher/version.py @@ -11,7 +11,7 @@ import gui import glob -VERSION = "1.17.14" +VERSION = "1.17.15" def parse_version(version_string: str): """Convert version string to tuple."""