Signer plugin attachment

This commit is contained in:
Jaco Greeff
2017-09-04 16:17:39 +02:00
parent 7818ed98c7
commit a5cc14ce8c
6 changed files with 80 additions and 1 deletions

View File

@@ -161,6 +161,10 @@ export default class Store {
}
addMiddleware (middleware) {
if (!middleware || (typeof middleware !== 'function')) {
throw new Error('Interceptor middleware does not implement a function');
}
this.middleware.push(middleware);
}