From 943e4903fd4f7d0549951eec19a2fca8433a32d6 Mon Sep 17 00:00:00 2001 From: NB10328 Date: Fri, 27 Nov 2020 14:52:56 +0000 Subject: [PATCH] proper acronym filename when running as module --- package.json | 2 +- swgohhelp-api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e3dcf89..6ffb997 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/swgohhelp-api.js b/swgohhelp-api.js index 29cefeb..4d89e22 100644 --- a/swgohhelp-api.js +++ b/swgohhelp-api.js @@ -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');