]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Set $D on window directly.
authorJoel Martin <github@martintribe.org>
Tue, 14 Feb 2012 23:23:14 +0000 (17:23 -0600)
committerJoel Martin <github@martintribe.org>
Tue, 14 Feb 2012 23:23:14 +0000 (17:23 -0600)
Addresses: https://github.com/kanaka/websockify/issues/29

include/webutil.js

index ee370e04680fdaeb08908130fe60bf1add952093..7a0a076085045df295c8c54ce4fffe6cc6076171 100644 (file)
@@ -17,7 +17,7 @@ var WebUtil = {}, $D;
  * Simple DOM selector by ID
  */
 if (!window.$D) {
-    $D = function (id) {
+    window.$D = function (id) {
         if (document.getElementById) {
             return document.getElementById(id);
         } else if (document.all) {