/* Determine base window. Need a try/catch block here since, if the
* page was loaded by an opener out of this current domain, this will
* throw an exception. */
+ DIMP.baseWindow = {};
try {
if (parent.opener &&
parent.opener.location.host == window.location.host &&
case 'button_deleted':
case 'button_ham':
case 'button_spam':
- if (DIMP.baseWindow && DIMP.baseWindow.DimpBase) {
+ if (DIMP.baseWindow.DimpBase) {
DIMP.baseWindow.focus();
if (id == 'button_deleted') {
DIMP.baseWindow.DimpBase.deleteMsg({ uid: this.uid, mailbox: this.mailbox });
DimpCore.updateMsgLog(this.log);
}
- if (this.strip && DIMP.baseWindow && DIMP.baseWindow.DimpBase) {
+ if (this.strip && DIMP.baseWindow.DimpBase) {
DIMP.baseWindow.DimpBase.poll();
}