Google Homepage Reloaded

By mlevit Last update May 11, 2010 — Installed 4,487 times.

error in tutorial for current version

in
Subscribe to error in tutorial for current version 2 posts, 2 voices



lorryslorrys User
FirefoxWindows

searchEngines[searchEngines.length] = new SearchEngine();
searchEngines[searchEngines.length - 1].logo = "";
searchEngines[searchEngines.length - 1].searchURL = "";
searchEngines[searchEngines.length - 1].buttonText = "";

should read:
searchSites[searchSites.length] = new SearchSite();
searchSites[searchSites.length - 1].logo = "";
searchSites[searchSites.length - 1].searchURL = ";
searchSites[searchSites.length - 1].buttonText = "";

(remember to check the sites already included to see how the 'punctuation' works at the end of lines.

 
mlevit Script's Author
FirefoxWindows

lorryslorrys: Thanks for pointing that out for me. I changed the code a couple of versions ago but forgot about the tutorial.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel