Skip to content

Commit

Permalink
proper acronym filename when running as module
Browse files Browse the repository at this point in the history
  • Loading branch information
NB10328 authored and NB10328 committed Nov 27, 2020
1 parent a279325 commit 943e490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swgoh-api-swgohhelp",
"version": "0.0.1",
"version": "0.0.2",
"description": "SWGoH helper API for swgoh.help",
"main": "index.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion swgohhelp-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ class SwgohHelpApi {

// load character acronyms from file
const ACRONYMS_FILE = module.path ? module.path + '/resources/toon_acronyms.json' : 'resources/toon_acronyms.json';
this.acronyms = SwgohHelpApi.loadAcronyms('./resources/toon_acronyms.json');
this.acronyms = SwgohHelpApi.loadAcronyms(ACRONYMS_FILE);

// add stats calculator module for swgoh.help
this.statsCalculator = require('swgoh-stat-calc');
Expand Down

0 comments on commit 943e490

Please sign in to comment.