Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: WebView preload inject script #240

Merged
merged 6 commits into from
Mar 14, 2023
Merged

Fix: WebView preload inject script #240

merged 6 commits into from
Mar 14, 2023

Conversation

nwittwer
Copy link
Collaborator

  • Fixed the preload script for WebView (WebPage.vue) which was not being loaded in production build. Now the previous functionalities, such as synchronized scrolling will work again.
  • Setup new TypeScript worfklow for src/extraResources, which will automatically re-build the /extraResources to the /dist/extraResources directory as a .js. This file can then be used for preload inside the WebView tag.

@nwittwer nwittwer merged commit 710d315 into dev Mar 14, 2023
@nwittwer nwittwer deleted the fix/frame-inject-script branch March 14, 2023 10:50
nwittwer added a commit that referenced this pull request Mar 14, 2023
* Added TS and separate package for extraResources  (injected `preload` script)

* Moved rest of /extraResources to .ts

* Updated yarn scripts to run preload TS workflow

* Updated builder.config to copy extraResources dir

* Updated injectScriptPath in WebView and options for WebView

* Add try/catch for loading main Electron window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant