From 4ab81035aa2086e3b7ab5a4b346b50869096c160 Mon Sep 17 00:00:00 2001 From: David Seifried Date: Thu, 23 Jun 2011 13:54:30 -0400 Subject: [PATCH] [#565] Made a small perf fix --- plugins/subtitle/popcorn.subtitle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index 37049e8..a8e9177 100755 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -6,7 +6,7 @@ i = 0, callBack = function( data ) { - if ( typeof google !== "undefined" && google.load ) { + if ( window.google && google.load ) { google.load( "language", "1", { callback: function() { -- 2.43.0