mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-22 10:21:37 +00:00
Refresh Caches only in Portal (#129)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user