Skip to content

Commit 709d11e

Browse files
committed
Undoing previous commit; that did not work
1 parent 757a278 commit 709d11e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

dropbox-backend.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,10 @@
2626
* This function stores the client ID in this object for use by a Dropbox
2727
* instance to be created later, once an access token is gained by the
2828
* login process in `getAccess()`.
29-
*
30-
* The second parameter is optional, but can provide a URL to use for the
31-
* Dropbox login page. By default, it uses the page in this same folder.
32-
* However, if you have loaded this project from a CDN, then you may not
33-
* have that file in your project. In such a case, you can provide the CDN
34-
* URL to teh Dropbox login page as the second parameter here. For your
35-
* convenience, that URL is:
36-
* https://cdn.jsdelivr.net/gh/lurchmath/cloud-storage@v1/dropbox-login.html
3729
*/
38-
function DropboxFileSystem ( clientID, loginURL )
30+
function DropboxFileSystem ( clientID )
3931
{
4032
this.clientID = clientID;
41-
this.loginURL = loginURL || './dropbox-login.html';
4233
}
4334

4435
/*
@@ -49,11 +40,16 @@ function DropboxFileSystem ( clientID, loginURL )
4940
* defined below to access the user's Dropbox. Upon successful login, the
5041
* login window is also closed, bringing the user back to the page in which
5142
* this script was run (your app).
43+
*
44+
* Note that this requires the `dropbox-login.html` page to be present in
45+
* the same folder as the page calling this function. If you are running
46+
* this code from a CDN, you will at least need to download that login page
47+
* and place it in your project's web space.
5248
*/
5349
DropboxFileSystem.prototype.getAccess = function ( successCB, failureCB )
5450
{
5551
if ( this.dropbox ) return successCB();
56-
var loginWindow = window.open( this.loginURL );
52+
var loginWindow = window.open( './dropbox-login.html' );
5753
var that = this;
5854
if ( !this.installedEventHandler ) {
5955
window.addEventListener( 'message', function ( event ) {

0 commit comments

Comments
 (0)