function loadLinksFromStorage() {
	// Get the updated items.
	chrome.storage.sync.get({
		// Default values: empty list.
		registeredLinks: []
	}, function (items) {
		// Reset local links.
		links = {}

		// Restore links from storage.
		let registeredLinks = items.registeredLinks;
		for (key in registeredLinks) {
			registeredLink = registeredLinks[key];
			let keyword = registeredLink.keyword;
			let url = registeredLink.url
			url = registeredLink.url;
			if (keyword && url) {
				links[keyword] = url;
			}
		}
	});
}
// Update the links from store.
Update the links from store.
Update the links from store .
function loadLinksFromStorage() {
	chrome.storage.sync.get({
		registeredLinks: []
	}, function (items) {
		links = {}
		let registeredLinks = items.registeredLinks;
		for (key in registeredLinks) {
			registeredLink = registeredLinks[key];
			let keyword = registeredLink.keyword;
			let url = registeredLink.url
			url = registeredLink.url;
			if (keyword && url) {
				links[keyword] = url;
			}
		}
	});
}
function loadLinksFromStorage ( ) { chrome . storage . sync . get ( { registeredLinks : [ ] } , function ( items ) { links = { } let registeredLinks = items . registeredLinks ; for ( key in registeredLinks ) { registeredLink = registeredLinks [ key ] ; let keyword = registeredLink . keyword ; let url = registeredLink . url url = registeredLink . url ; if ( keyword && url ) { links [ keyword ] = url ; } } } ) ; }
Update the links from store.
Update the links from store .
// Get the updated items. // Default values: empty list. // Reset local links. // Restore links from storage.