mirror of
https://github.com/csd4ni3l/browser.git
synced 2026-01-01 04:03:43 +01:00
fix css loading issues with weird urls that include parameters, fix font size issues with font sizes that are rem and fix text merging on Windows cause space width is 0, make clicking on link change search bar text.
This commit is contained in:
@@ -219,7 +219,7 @@ class HTTPClient():
|
||||
for css_link in css_links:
|
||||
self.content_response = ""
|
||||
|
||||
css_cache_filename = f"{self.scheme}_{self.host}_{self.port}_{self.path.replace('/', '_')}_{css_link.replace('/', '_')}.json" # we need to include the other variables so for example /styles.css wouldnt be cached for all websites
|
||||
css_cache_filename = f"{self.scheme}_{self.host}_{self.port}_{self.path.replace('/', '_')}_{css_link.replace('/', '_').replace('@', '_').replace('/', '_').replace(';', '_').replace('&', '_').replace('?', '_').replace(':', '')}.json" # we need to include the other variables so for example /styles.css wouldnt be cached for all websites
|
||||
|
||||
if css_cache_filename in os.listdir("css_cache"):
|
||||
with open(f"css_cache/{css_cache_filename}", "r") as file:
|
||||
|
||||
Reference in New Issue
Block a user