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