diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index d9907d2..6ac1cea 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -373,7 +373,7 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver): config["profile"]["exit_type"] = None fs.seek(0, 0) json.dump(config, fs) - # fs.truncate() # the file might be shorter + fs.truncate() # the file might be shorter logger.debug("fixed exit_type flag") except Exception as e: logger.debug("did not find a bad exit_type flag ")