[gnome-documents/gnome-3-22] documents: Use a global named constant for the ownCloud prefix
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-22] documents: Use a global named constant for the ownCloud prefix
- Date: Wed, 7 Jun 2017 14:45:12 +0000 (UTC)
commit 86f9f3bf347e27e16789e63c585d0aba31fbdb4c
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Apr 5 18:15:25 2017 +0200
documents: Use a global named constant for the ownCloud prefix
https://bugzilla.gnome.org/show_bug.cgi?id=781032
src/documents.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 7bdea98..1c9fd6b 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1101,6 +1101,8 @@ const GoogleDocument = new Lang.Class({
}
});
+const OWNCLOUD_PREFIX = 'owncloud:';
+
const OwncloudDocument = new Lang.Class({
Name: 'OwncloudDocument',
Extends: DocCommon,
@@ -1409,7 +1411,7 @@ const DocumentManager = new Lang.Class({
_identifierIsOwncloud: function(identifier) {
return (identifier &&
- (identifier.indexOf('owncloud:') != -1));
+ (identifier.indexOf(OWNCLOUD_PREFIX) != -1));
},
_identifierIsSkydrive: function(identifier) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]