|
|
@@ -8,7 +8,7 @@ import WebKit
|
|
8
|
8
|
|
|
9
|
9
|
/// Indeed job listing and apply flow in a `WKWebView`, embedded in the dashboard main panel or hosted in a window.
|
|
10
|
10
|
final class IndeedJobBrowserViewController: NSViewController, WKNavigationDelegate, WKUIDelegate {
|
|
11
|
|
- /// When set, a leading **Done** control calls this so the host can hide the embedded browser (same-window UX).
|
|
|
11
|
+ /// When set, a leading **Home** control calls this so the host can hide the embedded browser (same-window UX).
|
|
12
|
12
|
var onDismissEmbedded: (() -> Void)?
|
|
13
|
13
|
private let webView: WKWebView = {
|
|
14
|
14
|
let configuration = WKWebViewConfiguration()
|
|
|
@@ -21,7 +21,7 @@ final class IndeedJobBrowserViewController: NSViewController, WKNavigationDelega
|
|
21
|
21
|
private let backButton = NSButton()
|
|
22
|
22
|
private let forwardButton = NSButton()
|
|
23
|
23
|
private let reloadButton = NSButton()
|
|
24
|
|
- private let dismissEmbeddedButton = NSButton(title: "Done", target: nil, action: nil)
|
|
|
24
|
+ private let dismissEmbeddedButton = NSButton(title: "Home", target: nil, action: nil)
|
|
25
|
25
|
|
|
26
|
26
|
override func loadView() {
|
|
27
|
27
|
view = NSView(frame: NSRect(x: 0, y: 0, width: 920, height: 720))
|