mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge pull request #5141 from 3dd13/fix-storage-constructor-error
fix(StorageEngine): remove the error throwing in storage engine constructor
This commit is contained in:
@@ -30,7 +30,7 @@ import {StorageEngine} from './storage';
|
||||
* @see {@link /docs/v2/platform/storage/ Storage Platform Docs}
|
||||
*/
|
||||
export class LocalStorage extends StorageEngine {
|
||||
constructor() {
|
||||
constructor(options={}) {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@ export interface IStorageEngine {
|
||||
*/
|
||||
export class StorageEngine {
|
||||
constructor(options={}) {
|
||||
throw Error("constructor(options={}) not implemented for this storage engine");
|
||||
}
|
||||
get(key, value) {
|
||||
throw Error("get() not implemented for this storage engine");
|
||||
|
||||
Reference in New Issue
Block a user