capabilities: Encourage use on mobile devices.

Change-Id: Ia090503220d659b5a5daf422eaa7580630bde444
This commit is contained in:
Jan Holesovsky 2018-12-19 14:56:01 +01:00
parent a877885d9c
commit 21e9749d90

View file

@ -2767,7 +2767,7 @@ private:
return ostrXML.str();
}
/// Process the capabilities.json file and return as string.
/// Create the /hosting/capabilities JSON and return as string.
std::string getCapabilitiesJson(const Poco::Net::HTTPRequest& request)
{
std::shared_ptr<StreamSocket> socket = _socket.lock();
@ -2783,8 +2783,8 @@ private:
// Supports the TemplateSaveAs in CheckFileInfo?
capabilities->set("hasTemplateSaveAs", true);
// Version
capabilities->set("version", LOOLWSD_VERSION);
// Hint to encourage use on mobile devices
capabilities->set("hasMobileSupport", true);
std::ostringstream ostrJSON;
capabilities->stringify(ostrJSON);