Closed peterfranzo closed 4 years ago
You should be making a new instance of the SharecodeDecoder
from the csgo
import (not your CSGO
instance).
You're also missing a new
before csgo.SharecodeDecoder
; from the example.js file:
/* Decoding Share Codes */
var scDecoder = new csgo.SharecodeDecoder("CSGO-U6MWi-hYFWJ-opPwD-JciHm-qOijD");
console.log("Sharecode CSGO-U6MWi-hYFWJ-opPwD-JciHm-qOijD decodes into: ");
console.log(scDecoder.decode());
The sharecode decover is not working for me:
`
`
this results in