**Context**: On Thursday 3rd February an unplanned change was made to urgently fix a bug with the "live edit preview". This change may have disabled certain gadgets, or made gadgets work slightly differently in the **Vector 2022 skin.**
**How to fix**: Every gadget run in Vector should also work in Vector 2022, so all you need to do is also check the vector-2022 skin key if you are already checking the vector key.
==Search==
Your gadget may need fixing if it contains the code "vector" or uses `mw.config.get('skin')` appearing in this search: https://global-search.toolforge.org/?q=%5B%22%27%5Dvector%5B%27%22%5D®ex=1&namespaces=2%2C8&title=.*%5C.js
== Code snippet ==
This:
```
if ( mw.config.get( "skin" ) === "vector" ) {}
```
can be replaced with:
```
var isVectorSkin = mw.config.get( "skin" ) === "vector" || mw.config.get( "skin" ) === "vector-2022"
if ( isVectorSkin ) {}
```
You may also need to update [[MediaWiki:Gadgets-definition]] to enable any vector gadgets on vector-2022
==Example of a fix==
* To gadget: https://en.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-Twinkle.js&type=revision&diff=1069800936&oldid=1069773125
* To MediaWiki:Gadgets-definition https://en.wikipedia.org/w/index.php?title=MediaWiki%3AGadgets-definition&type=revision&diff=1069956838&oldid=1069799236