 			webview.loadHTMLString("", baseURL: nil)
 		}
 	}
-	
+
+	private func showOrHideWebView() {
+
+		if let _ = article {
+			switchToView(webview)
+		}
+		else {
+			switchToView(visualEffectView)
+		}
+	}
+
+	private func switchToView(_ view: NSView) {
+
+		let boxView = self.view as! DetailBox
+		if boxView.contentView == view {
+			return
+		}
+		boxView.contentView = view
+		boxView.rs_addFullSizeConstraints(forSubview: view)
+	}
+
 	// MARK: WKNavigationDelegate
 	
 	public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {

class DetailViewController: NSViewController, WKNavigationDelegate, WKUIDelegate {

	var webview: WKWebView!
	
	var article: Article? {
		didSet {
			reloadHTML()
		}
	}


			webview.customUserAgent = userAgent
		}

		visualEffectView = NSVisualEffectView(frame: self.view.bounds)
		visualEffectView.material = .appearanceBased
		visualEffectView.blendingMode = .behindWindow

		let boxView = self.view as! DetailBox
		boxView.viewController = self

		showOrHideWebView()
	}

	// MARK: Notifications
