MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / Toast

Function Toast

public/iframe/lib/js/commonFun.js:847–855  ·  view source on GitHub ↗
(message, type)

Source from the content-addressed store, hash-verified

845 this.debounceTimer = setTimeout(fn, wait || 500)
846 },
847 Toast(message, type) {
848 // Toast 提示
849 const params = {
850 command: 'toast',
851 type,
852 data: message
853 }
854 window.parent.postMessage(params, '*') // 用 iframe 外的toast 防止iframe过大 导致toast显示位置不对
855 },
856 setTranslate3d(translate3d, type, value) {
857 // 设置元素的translate3d属性值
858 if (translate3d === '') {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected