Commits

Sean Wilkinson committed e32d2b2

Now pursuing idea to map "box" (a URI) onto a URL

  • Participants
  • Parent commits e782a90
  • Branches gft

Comments (0)

Files changed (2)

File src/browser-client/index.html

             text.
           </p>
           <form class="navbar-form">
-            <input type="text" id="QM-box-input" class="centered" size="32"
-                pattern="^[\w\-]+" required disabled>
+            <input type="url" id="QM-box-input" class="centered" size="32"
+                required disabled>
             <input type="checkbox" id="QM-volunteer-input" disabled>
           </form>
         </div>

File src/browser-client/qmachine.js

             if (is_String(x) === false) {
                 throw new TypeError('`box` property must be a string.');
             }
+         /*
             if ((/^[\w\-]+$/).test(x) === false) {
                 throw new Error('Invalid assignment to `box`: "' + x + '"');
             }
+         */
             defineProperty(this, 'box', {
                 configurable: true,
                 enumerable: true,
             if (is_String(x) === false) {
                 throw new TypeError('`QM.box` must be a string.');
             }
+         /*
             if ((/^[\w\-]+$/).test(x) === false) {
                 throw new Error('Invalid assignment to `QM.box`: "' + x + '"');
             }
+         */
             state.box = x;
             global.QM.revive();
             return;