~mozillateam/ubufox/trunk

« back to all changes in this revision

Viewing changes to res/distributions/Ubuntu.jsm

  • Committer: Chris Coulson
  • Date: 2012-11-12 13:22:15 UTC
  • Revision ID: chris.coulson@canonical.com-20121112132215-c5c6y6nhz59qf611
Restore the infobar restart notification for older Ubuntu releases

Show diffs side-by-side

added added

removed removed

Lines of Context:
210
210
    }
211
211
 
212
212
    return Services.io.newURI(path + "/" + query, null, baseuri);
 
213
  },
 
214
 
 
215
  get updateRestartNotificationStyle() {
 
216
    let parts = distro.version.split(".");
 
217
    if (Number(parts[0]) > 12 || (Number(parts[0]) == 12 && Number(parts[1] == 10))) {
 
218
      return "popup";
 
219
    }
 
220
 
 
221
    return "infobar";
213
222
  }
214
223
};