-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: f8294d8c2b9a887ecfd3a1e3c176d8ebbff2c04f:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit f8294d8c2b9a887ecfd3a1e3c176d8ebbff2c04f
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sun Jan 30 14:33:34 2022 -0800

    Rename room.requirescripts to room.requires

diff --git a/scripts/room.js b/scripts/room.js

index d0ef85d66fc7dc17be51491c0b82d4fc9c1c24fa..

index ..3222f611a518b95e227f836f526b3b8d7ec8f42a 100644

--- a/scripts/room.js
+++ b/scripts/room.js
@@ -76,7 +76,7 @@ elation.require([
         'className': { type: 'string', default: '', set: this.setClassName },
         'gazetime': { type: 'float', default: 1000 },
         'selfavatar': { type: 'boolean', default: false },
-        'requirescripts': { type: 'string' },
+        'requires': { type: 'string' },
         'onload': { type: 'string' },
         'sync': { type: 'boolean', default: false },
         'pointerlock': { type: 'boolean', default: true },
@@ -937,10 +937,12 @@ elation.require([
           this.pendingScriptMap = {};
           this.loadScripts(assets.scripts);
         }
-        if (room.require) {
+
+        let requires = room.requires || room.require;
+        if (requires) {
           let roomproxy = this.getProxyObject();
-          roomproxy.require(room.require);
-          this.requirescripts = room.require;
+          roomproxy.require(requires);
+          this.requires = requires;
         }
       }
       this.applyingEdits = false;
@@ -2010,7 +2012,7 @@ console.log('connect room audio to graph', this.audionodes.gain, this.audionodes
           locked:        ['property', 'locked'],
           private:       ['property', 'private'],
           selfavatar:    ['property', 'selfavatar'],
-          requirescripts:['property', 'requirescripts'],
+          requires:      ['property', 'requires'],
           pos:           ['property', 'spawnpoint.position'],
           sync:          ['property', 'sync'],
           js_id:         ['property', 'roomid'],
@@ -2328,7 +2330,7 @@ console.log('connect room audio to graph', this.audionodes.gain, this.audionodes
               val = elation.utils.arrayget(this.properties, def[1]);

           if (k == 'url' || !propdef) continue;
-          if (k == 'requirescripts') k = 'require';
+          if (k == 'requires') k = 'require';

           let defaultval = propdef.default;
           if (val instanceof THREE.Vector2) {

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 17:23:16 2024