Skip to content

Commit

Permalink
Merge pull request #27 from stesla/fix-js
Browse files Browse the repository at this point in the history
  • Loading branch information
lizthegrey committed Nov 26, 2020
2 parents 243d4b5 + 4946b74 commit e014596
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/market.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@
}

window.market = function() {
var viewData;

return {
filter: decodeURIComponent(window.location.hash.split('#').pop()),
text: 'Hello, LSC4-P',
rows: [],

initialize() {
viewData = this;

fetch('/LSC4-P.json')
.then(resp => {
if (!resp.ok) {
Expand Down Expand Up @@ -52,6 +50,7 @@
})
});

var viewData = this;
new ClipboardJS('#clipboard', {
text: function() {
let rows = viewData.filteredRows;
Expand Down

0 comments on commit e014596

Please sign in to comment.