From 5c5cf5ddd1331283a1bce19ca9c44b0a14fa6583 Mon Sep 17 00:00:00 2001 From: Agriya Dev5 Date: Thu, 27 May 2021 16:25:38 +0530 Subject: [PATCH] #104 undefined issue fixed --- src/editor/ConfigObj.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/editor/ConfigObj.js b/src/editor/ConfigObj.js index c29a5e34..f49a7ac8 100644 --- a/src/editor/ConfigObj.js +++ b/src/editor/ConfigObj.js @@ -238,6 +238,7 @@ export default class ConfigObj { * @returns {void} */ loadFromURL () { + const self = this; const { search, searchParams } = new URL(location); if (search) { this.urldata = {}; @@ -276,8 +277,8 @@ export default class ConfigObj { // ways with other script resources [ 'userExtensions', 'imgPath' ] .forEach(function (pathConfig) { - if (this.urldata[pathConfig]) { - delete this.urldata[pathConfig]; + if (self.urldata[pathConfig]) { + delete self.urldata[pathConfig]; } });