From e02d495df54ef0ec7faee7b2f67b49566a1e1dc1 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 16 Jul 2015 10:34:25 -0700 Subject: [PATCH] don't start an art search when offline --- editor/meta.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/meta.ts b/editor/meta.ts index 41b3721b..6006ea50 100644 --- a/editor/meta.ts +++ b/editor/meta.ts @@ -75,7 +75,7 @@ module TDev.Meta { } export function searchArtAsync(terms: string, type: string) { // ArtInfo[] - if (!terms) return Promise.as([]); + if (!terms || Cloud.isOffline()) return Promise.as([]); if (Cloud.isRestricted()) { var url = "art?q=" + encodeURIComponent(terms);