File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33// Define browser for cross-browser compatibility
44var browser = ( typeof browser !== 'undefined' ) ? browser : chrome ;
55
6- function migrateLocalStorageToChromeStorage ( ) {
6+ function migrateLocalStorageToBrowserStorage ( ) {
77 // Check if localStorage is not null and contains any keys
88 if ( ! localStorage || Object . keys ( localStorage ) . length === 0 ) {
99 console . log ( 'No localStorage data to migrate.' ) ;
@@ -34,7 +34,7 @@ browser.runtime.onInstalled.addListener(function (details) {
3434 } else if ( details . reason === 'update' ) {
3535 console . log ( 'previousVersion' , details . previousVersion ) ;
3636 // Handle update logic
37- migrateLocalStorageToChromeStorage ( ) ;
37+ migrateLocalStorageToBrowserStorage ( ) ;
3838 }
3939} ) ;
4040
You can’t perform that action at this time.
0 commit comments