Skip to content

Commit

Permalink
Restore showing link in status bar on hover.
Browse files Browse the repository at this point in the history
  • Loading branch information
brentsimmons committed Dec 2, 2023
1 parent ee26aad commit 6860637
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions Mac/MainWindow/Detail/DetailWebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}()
Expand Down
1 change: 0 additions & 1 deletion Shared/Article Rendering/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,5 @@ function processPage() {
}

document.addEventListener("DOMContentLoaded", function(event) {
window.scrollTo(0, [[windowScrollY]]);
processPage();
})

0 comments on commit 6860637

Please sign in to comment.