#104 undefined issue fixed
This commit is contained in:
@@ -238,6 +238,7 @@ export default class ConfigObj {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
loadFromURL () {
|
loadFromURL () {
|
||||||
|
const self = this;
|
||||||
const { search, searchParams } = new URL(location);
|
const { search, searchParams } = new URL(location);
|
||||||
if (search) {
|
if (search) {
|
||||||
this.urldata = {};
|
this.urldata = {};
|
||||||
@@ -276,8 +277,8 @@ export default class ConfigObj {
|
|||||||
// ways with other script resources
|
// ways with other script resources
|
||||||
[ 'userExtensions', 'imgPath' ]
|
[ 'userExtensions', 'imgPath' ]
|
||||||
.forEach(function (pathConfig) {
|
.forEach(function (pathConfig) {
|
||||||
if (this.urldata[pathConfig]) {
|
if (self.urldata[pathConfig]) {
|
||||||
delete this.urldata[pathConfig];
|
delete self.urldata[pathConfig];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user