-
Notifications
You must be signed in to change notification settings - Fork 35
Cannot inject custom js in webapps #124
Comments
There's a workaround and is using a qml with a webview and embed the js as a UserScript
And in a Page element
And the webview:
|
Thanks, I'll try that workaround, but I highly prefer not using qml in simple webapp like mine... |
do you have an example of an app using it ? I've found hints to webapp-properties.json in the source code of morph, but not understood how the properties really work. |
my
then I have a file called
and obviously a script called |
Closed via #140 |
This was appearently broken with the removal of oxide |
not with the removal of oxide, but it depended on "Ubuntu.UnityWebApps" which was removed in 18d38c8#diff-0f082207c5919dab491e1030b99f9d8104f6f39d20ecf791924303a33b3bc31e while we moved from Qt 5.9 to Qt 5.12 (the Qt version of the system, not the one of QtWebEngine) As a replacement we could use a new parameter "--user-scripts=..." to the webapp-container as done in #527 The file webapp-properties.json would then no longer be needed. in the current example "--user-scripts=myscript.js" would be used. |
ah i see; that sounds like a plan forward yeah, thanks! |
I have a plain webapp (no qml at all, I have
Exec=webapp-container
in the.desktop
file) and a file calledwebapp-properties.json
which calls a custom script.the code in this custom script was executed with oxide, but not anymore with morph
The text was updated successfully, but these errors were encountered: