Commit 9e6e6662 authored by Joel Martin's avatar Joel Martin

Set $D on window directly.

Addresses: https://github.com/kanaka/websockify/issues/29
parent 32f135d7
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment