@8ms/helpers 1.3.15 → 1.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/string/getDecoded.js +1 -1
package/package.json
CHANGED
package/string/getDecoded.js
CHANGED
|
@@ -13,7 +13,7 @@ const unescape_1 = __importDefault(require("lodash/unescape"));
|
|
|
13
13
|
const getDecoded = ({ input }) => {
|
|
14
14
|
let response = (0, getString_1.default)({ input });
|
|
15
15
|
// Only works if DOM exists
|
|
16
|
-
if (undefined !== document) {
|
|
16
|
+
if ('undefined' !== typeof document) {
|
|
17
17
|
let el = document.createElement("textarea");
|
|
18
18
|
el.innerHTML = response;
|
|
19
19
|
response = el.value;
|