Refresh Caches only in Portal (#129)

This commit is contained in:
Steve Faulkner
2020-08-05 15:54:17 -05:00
committed by GitHub
parent f132a8546c
commit 78e70cc7cc
5 changed files with 12 additions and 7 deletions

View File

@@ -2,7 +2,6 @@ import { MessageTypes } from "../Contracts/ExplorerContracts";
import Q from "q";
import * as _ from "underscore";
import * as Constants from "./Constants";
import { config, Platform } from "../Config";
export interface CachedDataPromise<T> {
deferred: Q.Deferred<T>;
@@ -60,7 +59,7 @@ export function sendMessage(data: any): void {
}
export function canSendMessage(): boolean {
return config.platform === Platform.Portal && window.parent !== window;
return window.parent !== window;
}
// TODO: This is exported just for testing. It should not be.