summaryrefslogtreecommitdiffabout
path: root/content/generated-content.js
blob: 0ad08bb67035e77c9cb6938c131559a2ec3bfd2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var generated = {
 fireflix: null,
 data: null,

 init: function() {
  this.fireflix = window.arguments[0];
  this.data = window.arguments[1];
  this.databox = document.getElementById('data');
  this.databox.value = this.data;
  this.databox.select();
 },
 copy: function() {
  var ch = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
   .getService(Components.interfaces.nsIClipboardHelper);
  ch.copyString(this.data); 
 }
};