Sublime Text gives me the error of a missing semicolon in this part of the code, pointing to the first 'function" line as the culprit. Can anyone tell me where the semicolon goes? It doesn’t belong after the closing curly brace; that throws a warning.
function grabFilename(filename, size, color) {
if (color.length < 1) {color = "black";}
var mainFolder = "0cars/0racing-cars"; // URL to this page
var mainHtml = "/0racing-cars.html"; // this page
localStorage.setItem('wpMainFolder', mainFolder);
localStorage.setItem('wpMainHtml', mainHtml);
localStorage.setItem('wpName', filename);
localStorage.setItem('screenSize', size);
localStorage.setItem('bgColor', color);
window.location="../../wp_Show.html";
}