Files
todo-frontend/node_modules/licia/ric.js
Agent d12eea7693
Some checks failed
continuous-integration/drone/push Build is failing
fix: 微信登录补充保存username和role
2026-04-04 07:35:21 +00:00

23 lines
526 B
JavaScript

var root = require('./root');
var now = require('./now');
exports =
root.requestIdleCallback ||
function(cb) {
var start = now();
return setTimeout(function() {
cb({
didTimeout: false,
timeRemaining: function() {
return Math.max(0, 50 - (now() - start));
}
});
}, 1);
};
exports.cancel =
root.cancelIdleCallback ||
function(id) {
clearTimeout(id);
};
module.exports = exports;