mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
Update iframe.helper.js
This commit is contained in:
1 parent
96781698ba
commit
8dcaada8cf
1 file changed
+2
-1
@@ -20,7 +20,8 @@ class IframeHelper {
|
||||
const result = await new Function(string)();
|
||||
IframeHelper.postMessage({ type: 'response', data: result, id });
|
||||
} else {
|
||||
IframeHelper.postMessage({ type: 'response', data: new Function(data)(), id });
|
||||
const result = new Function(data)();
|
||||
IframeHelper.postMessage({ type: 'response', data: result, id });
|
||||
}
|
||||
} catch (error) {
|
||||
IframeHelper.postMessage({ type: 'error', data: error.message, id });
|
||||
|
||||
Reference in new issue
Block a user