File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,10 @@ class DocumentationViewController: NSViewController {
195195 self . documentURL = URL ( string: location)
196196 hideSearchControl ( )
197197 }
198+
199+ private func handleAppReboot( ) {
200+ webView. reload ( )
201+ }
198202}
199203
200204// MARK:- WKUIDelegate
@@ -256,6 +260,8 @@ extension DocumentationViewController: WKScriptMessageHandler {
256260 return
257261 }
258262 handleLocationNotification ( args)
263+ case " appReboot " :
264+ handleAppReboot ( )
259265 default :
260266 return
261267 }
Original file line number Diff line number Diff line change 2222 const app = await globalDefined ( 'app' )
2323 app . isMobile = ( ) => false
2424 app . views . Mobile . detect = ( ) => false
25+ app . reboot = ( ) => {
26+ window . webkit . messageHandlers . vcBus . postMessage ( {
27+ type : 'appReboot'
28+ } )
29+ }
2530
2631 window . matchMedia = original
2732 window . webkit . messageHandlers . vcBus . postMessage ( { type : 'afterInit' } )
You can’t perform that action at this time.
0 commit comments