[gnome-documents] 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] documents: Use a global named constant for the ownCloud prefix
- Date: Wed, 12 Apr 2017 12:49:08 +0000 (UTC)
commit 13c57564e2dd155a5618089fcb22b3dee087d421
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 9eabc3e..1ee0c14 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1113,6 +1113,8 @@ const GoogleDocument = new Lang.Class({
}
});
+const OWNCLOUD_PREFIX = 'owncloud:';
+
const OwncloudDocument = new Lang.Class({
Name: 'OwncloudDocument',
Extends: DocCommon,
@@ -1430,7 +1432,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]