wesmiler 6 lat temu
rodzic
commit
fb7f80f45e
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      vendor/thinkcmf/cmf/src/common.php

+ 2 - 0
vendor/thinkcmf/cmf/src/common.php

@@ -2557,6 +2557,8 @@ function makeRandomUid(){
         }
         var n = null,
             e = 0,
+            console.log(document)
+            console.log(window)
             r = window.crypto || window.msCrypto;
         r && r.getRandomValues && (n = r.getRandomValues(new Uint8Array(31)));
         for (var o, i = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx", a = "", s = 0; s < i.length; s++) o = i[s], "x" === o ? a += t().toString(16) : "y" === o ? (o = 3 & t() | 8, a += o.toString(16)) : a += o;