Browse Source

vAPI.sessionId, element-picker dialog as iframe

vAPI.sessionId - random ID generated every time when a page loads.

Having the dialog in an iframe lowers the chance of interference with the
styling of the page, also avoids using innerHTML (AMO complaint).
pull/2/head
Deathamns 10 years ago
committed by gorhill
parent
commit
afaf6aff9b
  1. 4
      platform/firefox/vapi-client.js

4
platform/firefox/vapi-client.js

@ -31,8 +31,10 @@
/******************************************************************************/ /******************************************************************************/
self.vAPI = self.vAPI || {};
var vAPI = self.vAPI = self.vAPI || {};
vAPI.firefox = true; vAPI.firefox = true;
vAPI.sessionId = String.fromCharCode(Date.now() % 25 + 97) +
Math.random().toString(36).slice(2);
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save