mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Don't fill DOM with a ton of class="undefined".
This commit is contained in:
@@ -32,7 +32,7 @@ GuacUI.sessionState = new GuacamoleSessionState();
|
||||
*/
|
||||
GuacUI.createElement = function(tagname, classname) {
|
||||
var new_element = document.createElement(tagname);
|
||||
new_element.className = classname;
|
||||
if (classname) new_element.className = classname;
|
||||
return new_element;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user