Skip to content

Commit

Permalink
Restore js path resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
NastuzziSamy committed Mar 12, 2019
1 parent be02372 commit 4d52bb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Backend/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class Google extends Backend {
public function __construct(IL10N $l) {
$appPath = \OC_App::getAppPath('files_external_gdrive');
$appWebPath = \OC_App::getAppWebPath('files_external_gdrive');

$this
->setIdentifier('files_external_gdrive')
Expand All @@ -40,6 +40,6 @@ public function __construct(IL10N $l) {
// all parameters handled in OAuth2 mechanism
])
->addAuthScheme(AuthMechanism::SCHEME_OAUTH2)
->addCustomJs("$appPath/js/gdrive");
->addCustomJs("../../../$appWebPath/js/gdrive");
}
}

0 comments on commit 4d52bb8

Please sign in to comment.