mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 11:09:18 +00:00
LibWeb: Use proper enums in WorkerOptions dictionary
This commit is contained in:
parent
a0c07d1bb2
commit
1d43d5b086
Notes:
github-actions[bot]
2024-09-20 21:42:39 +00:00
Author: https://github.com/ADKaster
Commit: 1d43d5b086
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1404
Reviewed-by: https://github.com/tcl3 ✅
7 changed files with 20 additions and 13 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Bindings/RequestPrototype.h>
|
||||
#include <LibWeb/Bindings/WorkerPrototype.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/HTML/MessagePort.h>
|
||||
#include <LibWeb/Worker/WebWorkerClient.h>
|
||||
|
@ -13,8 +15,8 @@
|
|||
namespace Web::HTML {
|
||||
|
||||
struct WorkerOptions {
|
||||
String type { "classic"_string };
|
||||
String credentials { "same-origin"_string };
|
||||
Bindings::WorkerType type { Bindings::WorkerType::Classic };
|
||||
Bindings::RequestCredentials credentials { Bindings::RequestCredentials::SameOrigin };
|
||||
String name { String {} };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue