Set $D on window directly.
Addresses: https://github.com/kanaka/websockify/issues/29
This commit is contained in:
parent
32f135d730
commit
9e6e6662c7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue