[gnome-documents/gnome-3-24] 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-24] documents: Use a global named constant for the ownCloud prefix
- Date: Mon, 24 Apr 2017 12:43:14 +0000 (UTC)
commit aeec467b70b97294b26a7c7c150c108ab50b0192
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 983fcb8..7355abe 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1102,6 +1102,8 @@ const GoogleDocument = new Lang.Class({
}
});
+const OWNCLOUD_PREFIX = 'owncloud:';
+
const OwncloudDocument = new Lang.Class({
Name: 'OwncloudDocument',
Extends: DocCommon,
@@ -1410,7 +1412,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]