Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 622e256

Browse files
authored
Merge pull request #150 from terranc/patch-1
修复插入第三方平台视频时的bug
2 parents 537a961 + 0e03573 commit 622e256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dialogs/video/video.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@
120120
align = findFocus("videoFloat","name");
121121

122122
var newurl = convert_url(url);
123-
if (newurl.startsWith("<embed>")) {
123+
if (newurl.startsWith("<embed")) {
124124
var arr = newurl.split(" ");
125-
for (var i=0; i>arr.length; i++) {
125+
for (var i=0; i<arr.length; i++) {
126126
if (arr[i].startsWith("src")) {
127127
newurl = arr[i].replace("src=", "");
128128
}
@@ -838,4 +838,4 @@
838838
}
839839
};
840840

841-
})();
841+
})();

0 commit comments

Comments
 (0)