File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed
Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## v4.2.1
4+
5+ - Fix browser check
6+
37## 4.2.0
48
59- Port to TypeScript
Original file line number Diff line number Diff line change 11{
22 "name" : " reverse-image-search" ,
33 "description" : " Reverse Image Search" ,
4- "version" : " 4.2.0 " ,
4+ "version" : " 4.2.1 " ,
55 "author" : " Brawl345" ,
66 "license" : " Unlicense" ,
77 "repository" : {
Original file line number Diff line number Diff line change 44 "name" : " __MSG_extensionName__" ,
55 "description" : " __MSG_extensionDescription__" ,
66 "author" : " Andreas Bielawski" ,
7- "version" : " 4.2.0 " ,
7+ "version" : " 4.2.1 " ,
88 "icons" : {
99 "16" : " icons/16.png" ,
1010 "32" : " icons/32.png" ,
Original file line number Diff line number Diff line change 2323 $ : iconUrl = getIcon (provider .icon );
2424
2525 const uploadIcon = () => {
26- if (isFirefox ) {
26+ if (! isFirefox ) {
2727 errorMsg = getMessage (" msgIconUploadNotSupported" );
2828 return ;
2929 }
Original file line number Diff line number Diff line change @@ -50,5 +50,6 @@ export const base64EncodeIcon = (ctx: CanvasRenderingContext2D): string => {
5050 return jpegBase64 ;
5151} ;
5252
53- // @ts -ignore
54- export const isFirefox = window . browser && browser . runtime ;
53+ export const isFirefox =
54+ // @ts -ignore
55+ typeof window !== 'undefined' && window . browser && browser . runtime ;
You can’t perform that action at this time.
0 commit comments