kodadot / nft-gallery

Generative Art Marketplace
https://koda.art
MIT License
645 stars 362 forks source link

fix: Error createCanvas function not found #11170

Closed hassnian closed 3 weeks ago

hassnian commented 3 weeks ago

PR Type

Context

Issue

canvasRegex uses the global flag (g), which causes the regex's lastIndex to be updated after each match. This results in returning null on alternating calls, leading to show Error createCanvas function not found

either this solution or remove the global flag g

Screenshot 📸

netlify[bot] commented 3 weeks ago

Deploy Preview for koda-canary ready!

Name Link
Latest commit 49c6e5ee55813551429755d03f2dcfaa1de0bcea
Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/6720d5212d66d1000843ddec
Deploy Preview https://deploy-preview-11170--koda-canary.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud