From 9f6d275620e29295a41bcca342ee0da531664721 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 29 Sep 2021 22:34:26 +0200 Subject: chore: save crendetials into the browser struct --- src/browser/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/browser/mod.rs') 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); } } -- cgit v1.2.3-18-g5258