MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / deleteFromBrowser

Method deleteFromBrowser

src/lib/ScriptManager.js:256–265  ·  view source on GitHub ↗

* Deletes scripts from local storage * @param {string} appId - The application ID * @returns {boolean} True if deletion was successful

(appId)

Source from the content-addressed store, hash-verified

254 * @returns {boolean} True if deletion was successful
255 */
256 deleteFromBrowser(appId) {
257 try {
258 // Remove from new format
259 localStorage.removeItem(this._getLocalPath(appId));
260 return true;
261 } catch (error) {
262 console.error('Failed to delete scripts from browser:', error);
263 return false;
264 }
265 }
266
267 /**
268 * Sets the storage preference for the app

Callers 1

deleteFromBrowserFunction · 0.45

Calls 1

_getLocalPathMethod · 0.95

Tested by

no test coverage detected