limit.page.js
405 Bytes
let shareAction = require('common/share');
$(function() {
shareAction({
title: $('#shareTitle').val(),
link: $('#shareLink').val(),
desc: $('#shareDesc').val(),
imgUrl: $('#shareImg').val(),
});
setTimeout(() => {
const $miniAppOpen = $('#mini-app-open');
if ($miniAppOpen[0]) {
$miniAppOpen[0].click();
}
}, 500);
});