KernelDeimos 4 месяцев назад
Родитель
Сommit
7deb0c5692
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/puter-js/src/index.js

+ 4 - 0
src/puter-js/src/index.js

@@ -321,6 +321,10 @@ window.puter = (function() {
          */
         async request_rao_ () {
             await this.p_can_request_rao_;
+                        
+            if ( this.env === 'gui' ) {
+                return;
+            }
             
             // setAuthToken is called more than once when auth completes, which
             // causes multiple requests to /rao. This lock prevents that.