code: function set (protocol) {
    try {
      define(window.location, 'protocol', {
        get: function () { return protocol; }
      });
    } catch (err) {
      mockedProtocol = protocol;
    }
  }
docs: Sets the protocol
  
  @param {String} protocol