mirror of
https://github.com/moparisthebest/mail
synced 2025-02-14 06:00:15 -05:00
check chrome app or use demo data
This commit is contained in:
parent
fa5c43d7cf
commit
4280de30c8
@ -15,8 +15,15 @@ define(function(require) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$scope.write = function(replyTo) {
|
$scope.write = function(replyTo) {
|
||||||
var replyToId = (replyTo) ? replyTo.uid : '';
|
var replyToId = (replyTo) ? replyTo.uid : '',
|
||||||
chrome.app.window.create('index.html#/write/' + replyToId, {
|
url = 'index.html#/write/' + replyToId;
|
||||||
|
|
||||||
|
if (!window.chrome) {
|
||||||
|
window.open(url, 'Compose Message', 'toolbar=no,width=800,height=600,left=500,top=200,status=no,scrollbars=no,resize=no');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
chrome.app.window.create(url, {
|
||||||
'bounds': {
|
'bounds': {
|
||||||
'width': 800,
|
'width': 800,
|
||||||
'height': 600
|
'height': 600
|
||||||
@ -24,7 +31,7 @@ define(function(require) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
if (true) {
|
if (!window.chrome) {
|
||||||
createDummyMails(function(emails) {
|
createDummyMails(function(emails) {
|
||||||
$scope.emails = emails;
|
$scope.emails = emails;
|
||||||
$scope.select($scope.emails[0]);
|
$scope.select($scope.emails[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user