nodebb-plugin-sso-facebook 3.6.0 → 3.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js CHANGED
@@ -144,7 +144,7 @@
144
144
 
145
145
  Facebook.appendUserHashWhitelist = function (data, callback) {
146
146
  data.whitelist.push('fbid');
147
- return setImmediate(callback, null, data);
147
+ setImmediate(callback, null, data);
148
148
  };
149
149
 
150
150
  Facebook.getAssociation = function (data, callback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-sso-facebook",
3
- "version": "3.6.0",
3
+ "version": "3.6.5",
4
4
  "description": "NodeBB Facebook SSO",
5
5
  "main": "library.js",
6
6
  "repository": {
package/plugin.json CHANGED
@@ -14,9 +14,9 @@
14
14
  { "hook": "filter:register.interstitial", "method": "prepareInterstitial" },
15
15
  { "hook": "filter:user.whitelistFields", "method": "appendUserHashWhitelist" }
16
16
  ],
17
- "acpScripts": [
18
- "static/lib/admin.js"
19
- ],
17
+ "modules": {
18
+ "../admin/plugins/sso-facebook.js": "static/lib/admin.js"
19
+ },
20
20
  "scripts": [
21
21
  "static/lib/main.js"
22
22
  ],
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  require(['hooks'], (hooks) => {
4
- hooks.on('static:script.init', ({ tpl_url }) => {
4
+ hooks.on('action:ajaxify.end', ({ tpl_url }) => {
5
5
  if (tpl_url === 'login') {
6
6
  var replaceEl = $('.alt-logins .facebook a i');
7
7
  var replacement = document.createElement('div');