     }
     
     fileprivate func setupWebView() {
+        let config = webView.configuration
         
         webView.autoresizingMask = [NSView.AutoresizingMask.height, NSView.AutoresizingMask.width]
         if webView.constraints.count == 0 {

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

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