Strip out Electron and NodeJS-specific functions to get the game working on a basic level

This commit is contained in:
Stephen Jianu 2022-09-12 23:58:44 -05:00
commit fe0ec3a2c7
4 changed files with 16 additions and 14 deletions

View file

@ -26,7 +26,6 @@ function Card (sym, value, type, name = 'Unknown') {
const graphic = document.createElement('div')
graphic.className = 'graphic'
graphic.innerHTML = require('fs').readFileSync(`${__dirname}/media/${this.type}/${this.value}.svg`)
face.appendChild(graphic)
// Name