We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb4215c commit 90d1ce7Copy full SHA for 90d1ce7
filebrowser.js
@@ -2261,10 +2261,19 @@ learnShare.addEventListener('click', () => {
2261
2262
const invite = 'Hey, I\'m using Codeit to code. It\'s a mobile code editor connected to Git. Join me! ' + window.location.origin;
2263
2264
- // copy invite to clipboard
2265
- copy(invite).then(() => {
2266
- showMessage('Copied invite!');
2267
- });
+ if (isMobile) {
+
+ // share invite
+ navigator.share({text: invite});
2268
2269
+ } else {
2270
2271
+ // copy invite to clipboard
2272
+ copy(invite).then(() => {
2273
+ showMessage('Copied invite!');
2274
+ });
2275
2276
+ }
2277
2278
})
2279
0 commit comments