summaryrefslogtreecommitdiff
path: root/src/browser/mod.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-09-29 22:34:26 +0200
committerSanto Cariotti <santo@dcariotti.me>2021-09-29 22:42:03 +0200
commit9f6d275620e29295a41bcca342ee0da531664721 (patch)
tree8111a0ece8be646a6686eebdc9d067a3209d14c2 /src/browser/mod.rs
parent8de625e9eba926c7ca8c2f86d658283480938b2f (diff)
chore: save crendetials into the browser struct
Diffstat (limited to 'src/browser/mod.rs')
-rw-r--r--src/browser/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/browser/mod.rs b/src/browser/mod.rs
index 528849d..9b36c94 100644
--- a/src/browser/mod.rs
+++ b/src/browser/mod.rs
@@ -8,9 +8,9 @@ mod web_browser;
/// Create a new instance of `Browser` and associate it with the static variable `WEB_BROWSER`.
/// This is an unsecure type of usage, so the block is inside the `unsafe` block
-pub async fn init(driver_url: &String) {
+pub async fn init(config: &Config) {
unsafe {
- WEB_BROWSER = Some(Browser::new(driver_url).await);
+ WEB_BROWSER = Some(Browser::new(config).await);
}
}