mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
Solved the issue of undefined charAt in index.js
This commit is contained in:
@@ -8,8 +8,10 @@ export const fetchAppInfo = (str, burl, app_id) => async (dispatch) => {
|
||||
Parse.initialize(app_id);
|
||||
|
||||
const response = appInfo;
|
||||
let _base = response.baseurl.charAt(response.baseurl.length - 1);
|
||||
localStorage.removeItem("baseUrl");
|
||||
let _base = ""; // Define _base here and initialize it to an empty string
|
||||
if (response && response.baseurl) {
|
||||
_base = response.baseurl.charAt(response.baseurl.length - 1);
|
||||
} localStorage.removeItem("baseUrl");
|
||||
localStorage.setItem("_appName", response.appname);
|
||||
localStorage.setItem("_app_objectId", response.objectId);
|
||||
if (_base === "/") {
|
||||
|
||||
Reference in New Issue
Block a user