var Unica = Unica || {}; Unica.Configuration = { Debugging: false, FlowServer: { Address: "ws://213.128.71.110:10443/echo" //Address: "wss://hfttest.yf.com.tr/echo" }, RestServer: { Address: "http://213.128.71.110:10443" //Address: "https://hfttest.yf.com.tr" }, CustomFilters: { ordersTraderFilter1: function (filter, item) { if (!filter.values) return true; if (item["trader"] && item["trader"].length > filter.values.length) { var t = item["trader"].substr(filter.values.length); if (!t) return false; return item["trader"].startsWith(filter.values) && !isNaN(t); } return item["trader"] && item["trader"] === filter.values; } } }; //var features = []; //('Object' in window) || features.push('Object'); //('Promise' in window) || features.push('Promise'); //('IntersectionObserver' in window) || features.push('IntersectionObserver'); //('after' in Element.prototype) || features.push('Element.prototype.after'); //// If any features need to be polyfilled, construct //// a script tag to load the polyfills and append it //// to the document //if (features.length) //{ // var s = document.createElement('script'); // // Include a `ua` argument set to a supported browser to skip UA identification // // (improves response time) and avoid being treated as unknown UA (which would // // otherwise result in no polyfills, even with `always`, if UA is unknown) // s.src = 'https://cdn.polyfill.io/v2/polyfill.min.js?features=' + features.join(',') + '&flags=gated,always&ua=chrome/50&callback=main'; // s.async = true; // document.head.appendChild(s); //}