         //  Fetch, synchronize and observe data store for cookie changes
         if #available(OSX 10.13, *) {
             let websiteDataStore = WKWebsiteDataStore.nonPersistent()
-            let configuration = webView.configuration
-            configuration.websiteDataStore = websiteDataStore
+            config.websiteDataStore = websiteDataStore
             
-            configuration.processPool = WKProcessPool()
+            config.processPool = WKProcessPool()
             let cookies = HTTPCookieStorage.shared.cookies ?? [HTTPCookie]()
             
-            cookies.forEach({ configuration.websiteDataStore.httpCookieStore.setCookie($0, completionHandler: nil) })
+            cookies.forEach({ config.websiteDataStore.httpCookieStore.setCookie($0, completionHandler: nil) })
             WKWebsiteDataStore.default().httpCookieStore.add(self)
         }
         

        webView.registerForDraggedTypes(Array(webView.acceptableTypes))

        //  Watch javascript selection messages unless already done
        let controller = webView.configuration.userContentController
        if controller.userScripts.count > 0 { return }
        
        controller.add(self, name: "newWindowWithUrlDetected")

        }
        
        // Allow plug-ins such as silverlight
        config.preferences.plugInsEnabled = true
        
        // Custom user agent string for Netflix HTML5 support
        webView.customUserAgent = UserSettings.UserAgent.value
