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

Function getStaticUrl

public/iframe/lib/js/commonFun.js:13–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 },
12 methods: {
13 getStaticUrl() {
14 const scripts = [].slice.call(document.scripts)
15 scripts.some(item => {
16 if (item.src.includes('commonFun.js')) {
17 const reg = /^((https|http|ftp|rtsp|mms)?:\/\/)[^\s]+\/iframe/
18 const nowUrl = item.src.match(reg)[0]
19 this.staticUrl = nowUrl;
20 return true;
21 }
22 })
23 },
24 async handlerBluePrintConfig(bluePrintConfig, sourceData) {
25 // 执行蓝图编辑器的配置交互
26 for (const key in bluePrintConfig) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected