ResourceHandler sometimes fails when open the browser for the first time? #3694
tp1415926535
started this conversation in
General
Replies: 1 comment 1 reply
-
Please provide
Please fork the minimum example, make only the minimal changes required to reproduce the problem, squash all changes into a single commit, push changes to GitHub and post a link here to your fork.
Without an example it's impossible to say. See https://stackoverflow.com/help/minimal-reproducible-example |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I inherited ResourceHandler and ISchemeHandlerFactory classes, set RegisterScheme in app class to get embedded resources(html and js files), and use ExecuteScriptAsyncWhenPageLoaded to call js functions,
But when I show the browser window(child window) for the first time, it sometimes throw error that some functions or variables are undefined. Then I close this child window and show again, it will never report an error again and successfully display the page ,execute the function . This is the case in most cases when I test it.
So I want to know where I might be wrong?
Beta Was this translation helpful? Give feedback.
All reactions