lsc %!s(int64=2) %!d(string=hai) anos
pai
achega
069e545cf3
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      js/Desktop/DeskTop.js

+ 3 - 1
js/Desktop/DeskTop.js

@@ -2895,7 +2895,7 @@ U.MD.D.I.getEditorContent = function (iframe) {
     });
 }
 
-U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
+U.MD.D.I.getContent = function (cid, s, task, t, uid, type) {
     return new Promise((resolve, reject) => {
         U.A.Request(US.Config.pbl + "selectWord2?uid=" + uid + "&cid=" + cid + "&s=" + s + "&task=" + task + "&t=" + t + "&type=" + type, [], function (res) {
             if (res.value[0].length > 0) {
@@ -2903,6 +2903,8 @@ U.MD.D.I.getContent = async function (cid, s, task, t, uid, type) {
                 resolve(res.value[0][0].text);
 
 
+            }else{
+                resolve("")
             }
         }, [], { "type": "GET", "withCredentials": true });
     });