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
Following the Usage instructions it seems like I should be able to avoid using Browserify by loading the browser-request JS file directly in HTML like so <script src="node_modules/browser-request/index.js"></script> and then in another JS file that is loaded beneath it, using browser-request by calling window.request (HTML comment in Usage instructions reads "Assigns the module to window.request"). Apparently I am misinterpreting that because window.request is undefined. Can someone please explain to me how to use this without needing to use Node's require() and Browserify? I have confirmed that node_modules/browser-request/index.js is being loaded by the browser.
Thank you.
The text was updated successfully, but these errors were encountered:
Following the Usage instructions it seems like I should be able to avoid using Browserify by loading the browser-request JS file directly in HTML like so
<script src="node_modules/browser-request/index.js"></script>
and then in another JS file that is loaded beneath it, using browser-request by callingwindow.request
(HTML comment in Usage instructions reads "Assigns the module to window.request"). Apparently I am misinterpreting that becausewindow.request
is undefined. Can someone please explain to me how to use this without needing to use Node'srequire()
and Browserify? I have confirmed thatnode_modules/browser-request/index.js
is being loaded by the browser.Thank you.
The text was updated successfully, but these errors were encountered: