You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am building my frontend entirely on Django templates (pure HTML, CSS, JS). I want to use noVNC. I am unwilling to bring in webpack just to use noVNC. Here's how I converted noVNC to be used via browser's script tag --
Did npm install to get the lib.
Then did browserify rfb.js -o bundle.js .
Included bundle.js in script tag via <script src="{% static 'bundle.js' %}"></script>.
Now, I am unable to use RFB on my other script tags. Is there any other object that I should use?
I can see a lot of potential people wanting to do what I am trying to achieve. There must be a way out, let's figure it out together. Thanks for your work on noVNC guys!
The text was updated successfully, but these errors were encountered:
noVNC does not need to be converted to be used in a browser as it is natively written for that. So my first suggestion would be to use the normal noVNC code from here, rather than the CommonJS version from npm.
That said, what you are doing should work. What error are you getting?
I am building my frontend entirely on Django templates (pure HTML, CSS, JS). I want to use noVNC. I am unwilling to bring in webpack just to use noVNC. Here's how I converted noVNC to be used via browser's
script
tag --npm install
to get thelib
.browserify rfb.js -o bundle.js
.bundle.js
in script tag via<script src="{% static 'bundle.js' %}"></script>
.I can see a lot of potential people wanting to do what I am trying to achieve. There must be a way out, let's figure it out together. Thanks for your work on noVNC guys!
The text was updated successfully, but these errors were encountered: