* Deletes scripts from local storage * @param {string} appId - The application ID * @returns {boolean} True if deletion was successful
(appId)
| 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 |
no test coverage detected