mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 17:04:59 +00:00
LibWeb: Use full source URL as script filename
Just the basename is not enough in most cases, as it's usually not immediately obvious where scripts are loaded from.
This commit is contained in:
parent
71d27abb97
commit
c2f936b14c
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ void HTMLScriptElement::prepare_script()
|
|||
auto request = LoadRequest::create_for_url_on_page(url, document().page());
|
||||
|
||||
// FIXME: This load should be made asynchronous and the parser should spin an event loop etc.
|
||||
m_script_filename = url.basename();
|
||||
m_script_filename = url.to_string();
|
||||
ResourceLoader::the().load_sync(
|
||||
request,
|
||||
[this, url](auto data, auto&, auto) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue