[gnome-documents/wip/rishi/onedrive: 9/11] 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/wip/rishi/onedrive: 9/11] documents: Use a global named constant for the ownCloud prefix
- Date: Fri, 7 Apr 2017 13:35:20 +0000 (UTC)
commit bca871fdf216590bf94e347a8dc582f49917da76
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 234b16f..6649e90 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -1121,6 +1121,8 @@ const GoogleDocument = new Lang.Class({
}
});
+const OWNCLOUD_PREFIX = 'owncloud:';
+
const OwncloudDocument = new Lang.Class({
Name: 'OwncloudDocument',
Extends: DocCommon,
@@ -1438,7 +1440,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]