This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tokenColorCustomizations": { | |
"textMateRules": [ | |
{ | |
"scope": [ | |
"comment", | |
"keyword", | |
"constant", | |
"storage.type", | |
"storage.modifier", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
chakra, | |
forwardRef, | |
omitThemingProps, | |
StylesProvider, | |
SystemStyleObject, | |
ThemingProps, | |
useMultiStyleConfig, | |
useStyles, | |
HTMLChakraProps, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple & convinient way to remove all service workers registered for specific web page | |
// Useful when working with PWA | |
// Paste code below to the console, it should return Promise | |
const getRidOfAllServiceWorkers = async () => { | |
const registry = await navigator.serviceWorker.getRegistrations() | |
for (const entry of registry) { | |
entry.unregister() | |
} | |
} |