Skip to content

v1.0.0

Compare
Choose a tag to compare
@HamzaElkotp HamzaElkotp released this 22 Sep 16:04

Fix & Improve

  • renaming metatagFunc to metatagArr .
  • putting SPAname, SPAurl, SPAtitle variables from metaTags function inside jsonRead function.
  • replacing the metaTags function with an array that will do the same job of this function.
  • metaTags function was made in pasts commits to make the programmer deal easier with jsonRead by making the use of constant names to SPAname, SPAurl, SPAtitle unnecessary, so he could replace the SPAname key in JSON file with e.g.: SuperCat, but he must pass SuperCat key in the passed array when calling jsonRead like this:

jsonRead("spa.json",["SuperCat", "SPAurl", "SPAtitle"]);