Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Added platformutils file with the platform special key character function
Andrew Bastin2208403c20a8
diff --git a/functions/platformutils.js b/functions/platformutils.jsnew file mode 100644index 000000000..8c285c1d5--- /dev/null+++ b/functions/platformutils.js@@ -0,0 +1,3 @@+export function getPlatformSpecialKey() {+ return /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘" : "Ctrl"+}