mirror of
https://github.com/MontFerret/ferret.git
synced 2025-02-03 13:11:45 +02:00
162dd07346
* Updated navigation logic * Fixed goroutine deadlock * Fixed closing chan * Added support of waiting for individual frame navigation * Updated EventLoop API in order to avoid double closing of event sources * Fixed attr retrieval * Removed redundant println * Updated DOM Readiness check
14 lines
173 B
Go
14 lines
173 B
Go
package templates
|
|
|
|
const domReadyTemplate = `
|
|
if (document.readyState === 'complete') {
|
|
return true;
|
|
}
|
|
|
|
return null;
|
|
`
|
|
|
|
func DOMReady() string {
|
|
return domReadyTemplate
|
|
}
|