diff --git a/lib/Backend/Google.php b/lib/Backend/Google.php index 973b11e..d423082 100644 --- a/lib/Backend/Google.php +++ b/lib/Backend/Google.php @@ -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') @@ -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"); } }