add indexeddbstorage&httpstorage switch