-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect if the current URL has a WebDAV share #129
Comments
Also currently the webdav-js loading automatiaclly and renders directory folder. So if the script is added to |
Ok so here I implemented the loader myself: https://github.com/WebDAVDevs/webdav-browser-extension/blob/master/loadWebdavJs.js The OPTIONS can't be used because the DAV header is hidden when making a request from JS. So instead I called a PROPFIND Depth:0 and then checking a body. |
Currently if I'm on a page that doesn't have a WebDAV share and executing the bookmarklet then it's executed but as result I have a broken page.
It's fine, but maybe we can change order and first check OPTIONS and only then render the UI. And if the URL doesn't have a DAV header then gracefully say it to a user.
I'm going to implement this for the browser extension #128 but this may be done by the webdav-js itself.
The text was updated successfully, but these errors were encountered: