~ps-jenkins/unity-chromium-extension/trusty-proposed

« back to all changes in this revision

Viewing changes to chromium-extension/content/unity-misc-utils.js

  • Committer: Tarmac
  • Author(s): Alexandre Abreu
  • Date: 2013-09-16 15:40:39 UTC
  • mfrom: (227.1.5 latest)
  • Revision ID: tarmac-20130916154039-oj5t4j3stjrog9sz
Release version 3.0
Remove tab integration
Keep webapps installation scheme
Keep website api injection but only handle the init() w/ a default desktop file generated to launch the webbrowser-app in chromeless mode
.

Approved by PS Jenkins bot, Robert Bruce Park.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
UnityMiscUtils = {
2
 
  toISODate: function(d) {
3
 
    function pad(n) {
4
 
      return n < 10 ? '0' + n : n;
5
 
    }
6
 
    
7
 
    return d.getUTCFullYear() + '-'
8
 
      + pad(d.getUTCMonth() + 1) + '-'
9
 
      + pad(d.getUTCDate()) + 'T'
10
 
      + pad(d.getUTCHours()) + ':'
11
 
      + pad(d.getUTCMinutes()) + ':'
12
 
      + pad(d.getUTCSeconds()) + 'Z';
13
 
  }
14
 
};
15