     // MARK:- Translucency
     fileprivate var mouseOver: Bool = false {
         didSet {
-            if (doc?.settings.autoHideTitle.value)!, let window = self.webView.window {
+            if (doc?.settings.autoHideTitle.value)!, let window = self.webView?.window {
                 window.titleVisibility = mouseOver ? NSWindowTitleVisibility.visible : NSWindowTitleVisibility.hidden
                 window.titlebarAppearsTransparent = mouseOver ? false : true
                 docIconToggle()

        case k.docPlaylists:
            return k.docPlaylistsName
        default:
            if let length = self.webView.title?.count, length > 0 {
                return self.webView.title!
            }
            return displayName
        }

            return self.window?.contentViewController as! WebViewController
        }
    }
    var webView: MyWebView? {
        get {
            return self.webViewController.webView
        }
