Restore showing link in status bar on hover.

This commit is contained in:
Brent Simmons 2023-12-01 17:10:01 -08:00
parent ee26aadb82
commit 6860637912
2 changed files with 1 additions and 3 deletions

View File

@ -74,12 +74,11 @@ final class DetailWebViewController: NSViewController {
}
static let userScripts: [WKUserScript] = {
let appScriptsWorld = WKContentWorld.world(name: "NetNewsWire")
let filenames = ["main", "main_mac", "newsfoot"]
let scripts = filenames.map { filename in
let scriptURL = Bundle.main.url(forResource: filename, withExtension: ".js")!
let scriptSource = try! String(contentsOf: scriptURL)
return WKUserScript(source: scriptSource, injectionTime: .atDocumentStart, forMainFrameOnly: true, in: appScriptsWorld)
return WKUserScript(source: scriptSource, injectionTime: .atDocumentStart, forMainFrameOnly: true)
}
return scripts
}()

View File

@ -170,6 +170,5 @@ function processPage() {
}
document.addEventListener("DOMContentLoaded", function(event) {
window.scrollTo(0, [[windowScrollY]]);
processPage();
})