js: Switch to strict mode in script.js
The script should be compatible with strict mode, and strict mode prevents some annoying bugs. The most important, it prevents assigning to an undeclared variable. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
This commit is contained in:
parent
ef1b83ad75
commit
e8f8a2e7b4
1 changed files with 2 additions and 0 deletions
|
|
@ -1,3 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
/* Tags menu filter */
|
||||
|
||||
// Get a dictionary of tag name -> tag link from HTML
|
||||
|
|
|
|||
Loading…
Reference in a new issue