Adding fix for #69 #70

Merged
randuhmm merged 1 commits from bugfix/plugin-baseurl into master 2017-12-10 01:35:24 +00:00
randuhmm commented 2017-10-20 06:29:13 +01:00 (Migrated from github.com)

I tested this fix both with and without the X-Script-Name header and verified that it works. I am not 100% certain that using the window.PLUGIN_BASEURL global variable is the prescribed way to go for constructing XHR calls, but it's the only reliable client-side data I could locate. There also seems to be an API_BASEURL for plugins that use the Simple API mixin, so we seem to be on the right track...

I tested this fix both with and without the `X-Script-Name` header and verified that it works. I am not 100% certain that using the `window.PLUGIN_BASEURL` global variable is the prescribed way to go for constructing XHR calls, but it's the only reliable client-side data I could locate. There also seems to be an `API_BASEURL` for plugins that use the Simple API mixin, so we seem to be on the right track...
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Gandalf/OctoPrint-Enclosure#70