You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"use strict";function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,n,t){return n&&_defineProperties(e.prototype,n),t&&_defineProperties(e,t),e}var ReUseMl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"set",value:function(e){this.views=e}},{key:"render",value:function(e,n){var t=document.querySelector(n);fetch(this.views+"/"+e).then(function(e){return e.text()}).then(function(e){t.innerHTML=e}).catch(function(e){return console.log(e)})}}]),e}();