define(["log","ptp.js/ptp"],function(e,t){"use strict";var n;n=function(){var n=document.querySelector("section.connect input").value;if(n===""){e.appendError("Empty host");return}e.append("Connecting to "+n+"…"),t.host=n,t.clientName="ptp.js demo",t.loggerOutputIsEnabled=!0,t.onConnected=function(){e.append("Connected")},t.connect()},document.querySelector("section.connect button").onclick=n});