[storage][js] update ref.toString to now correctly return the full bucket path to the ref location

This commit is contained in:
Salakar 2017-08-14 14:06:37 +01:00
parent 534a52d16a
commit 56fc189d26
2 changed files with 2 additions and 3 deletions

View File

@ -44,7 +44,6 @@ export default class Analytics extends ModuleBase {
// maximum number of allowed params check
if (params && Object.keys(params).length > 25) throw new Error('Maximum number of parameters exceeded (25).');
// TODO validate param names and values
// Parameter names can be up to 24 characters long and must start with an alphabetic character
// and contain only alphanumeric characters and underscores. Only String, long and double param
// types are supported. String parameter values can be up to 36 characters long. The "firebase_"

View File

@ -11,15 +11,15 @@ import Storage from './';
export default class StorageReference extends ReferenceBase {
constructor(storage: Storage, path: string) {
super(path, storage);
this._storage = storage;
}
get fullPath(): string {
return this.path;
}
// todo return full gs://bucket/path
toString(): String {
return this.path;
return `${this._storage.app.options.storageBucket}/${this.path}`;
}
/**