From: Hyunjin Park Date: Wed, 22 Jul 2015 10:07:28 +0000 (+0900) Subject: [util] loading so is failed in wrt-service case X-Git-Tag: submit/tizen_tv/20150803.021740^2^2~34^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41fb859a48bd4ef5f93592dd262861405017b0ad;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [util] loading so is failed in wrt-service case - add undefined-window case Change-Id: I8d8741560dc09f91161401cbaa8f952d4a1f436c --- diff --git a/src/utils/utils_api.js b/src/utils/utils_api.js index 6020012c..fcef33dc 100755 --- a/src/utils/utils_api.js +++ b/src/utils/utils_api.js @@ -3,7 +3,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -var _global = window || global || {}; +var _global = {}; +if (typeof window != 'undefined') { + _global = window; +} +else if (typeof global != 'undefiend') { + _global = global; +} /** * @deprecated Used only by validateArguments()