mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
Inject pad dependencies into most pad submodules.
This commit is contained in:
parent
56c07e484a
commit
514698162f
8 changed files with 22 additions and 26 deletions
|
@ -87,9 +87,9 @@ var padcookie = (function()
|
|||
|
||||
var pad = undefined;
|
||||
var self = {
|
||||
init: function(prefsToSet)
|
||||
init: function(prefsToSet, _pad)
|
||||
{
|
||||
pad = require('/pad2').pad; // Sidestep circular dependency (should be injected).
|
||||
pad = _pad;
|
||||
|
||||
var rawCookie = getRawCookie();
|
||||
if (rawCookie)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue