Showing the changes to libraries/script-engine/src/AssetScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -34,7 +34,7 @@ void AssetScriptingInterface::uploadData(QString data, QScriptValue callback) { · 33 unmodified lines | ||
| 34 | 34 | |
| 35 | 35 | QObject::connect(upload, &AssetUpload::finished, this, [this, callback](AssetUpload* upload, const QString& hash) mutable { |
| 36 | 36 | if (callback.isFunction()) { |
| 37 | − QString url = "atp://" + hash; | |
| 37 | + QString url = "atp:" + hash; | |
| 38 | 38 | QScriptValueList args { url }; |
| 39 | 39 | callback.call(_engine->currentContext()->thisObject(), args); |
| 40 | 40 | } |
| @@ -43,7 +43,7 @@ void AssetScriptingInterface::uploadData(QString data, QScriptValue callback) { · 2 unmodified lines | ||
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | void AssetScriptingInterface::downloadData(QString urlString, QScriptValue callback) { |
| 46 | − const QString ATP_SCHEME { "atp://" }; | |
| 46 | + const QString ATP_SCHEME { "atp:" }; | |
| 47 | 47 | |
| 48 | 48 | if (!urlString.startsWith(ATP_SCHEME)) { |
| 49 | 49 | return; |