Skip to content

Fix: WebView preload inject script#240

Merged
nwittwer merged 6 commits intodevfrom
fix/frame-inject-script
Mar 14, 2023
Merged

Fix: WebView preload inject script#240
nwittwer merged 6 commits intodevfrom
fix/frame-inject-script

Conversation

@nwittwer
Copy link
Copy Markdown
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