diff --git a/modules/core/src/storageinterruptsource.ts b/modules/core/src/storageinterruptsource.ts index be6c0b2..51dc652 100644 --- a/modules/core/src/storageinterruptsource.ts +++ b/modules/core/src/storageinterruptsource.ts @@ -14,7 +14,7 @@ export class StorageInterruptSource extends WindowInterruptSource { * @return True if the event should be filtered (don't cause an interrupt); otherwise, false. */ filterEvent(event: StorageEvent): boolean { - if (event.key.indexOf('ng2Idle.') >= 0 && event.key.indexOf('.expiry') >= 0) { + if (event.key && event.key.indexOf('ng2Idle.') >= 0 && event.key.indexOf('.expiry') >= 0) { return false; } return true;