UNPKG

lpio

Version:

The last dashboard app you'll ever need

36 lines (33 loc) 952 B
<link rel="import" href="../../bower_components/polymer/polymer.html"> <link rel="import" href="../lp-imports/underscore.html"> <script> window.LinchPinBehaviors = window.LinchPinBehaviors || {}; /** * * @polymerBehavior LinchPinBehaviors.HttpConnect * **/ LinchPinBehaviors.HttpConnectImpl = { properties: { secure: { type: Boolean, value: false }, endpoint: { type: String, computed: 'computeEndpoint(secure,host,port)' }, host: String, port: Number }, computeEndpoint: function(secure,host,port){ var url = 'http'; if(secure){ url+='s'; } url += '://'+host+":"+port; return url; } }; LinchPinBehaviors.HttpConnect = [LinchPinBehaviors.HttpConnectImpl]; </script>