Apply 2 suggestion(s) to 1 file(s)

This commit is contained in:
Sarah Vaupel 2021-08-24 14:49:45 +02:00
parent dc0d141cd6
commit 05de310ddd

View File

@ -204,8 +204,8 @@ export class StorageManager {
case LOCATION.WINDOW:
return this._clearWindow();
case LOCATION.HISTORY:
if(options.history)
return this._clearHistory(options && options.history);
if(options && options.history)
return this._clearHistory(options.history);
else
return;
default: