generic-skin 3.0.6 → 3.0.7

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/apps/vueChrono.js CHANGED
File without changes
File without changes
File without changes
File without changes
package/apps/vueMulti.js CHANGED
File without changes
File without changes
package/apps/vueRela.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -180,7 +180,7 @@ const FNR = {
180
180
  content: {
181
181
  isAutosave: () => {
182
182
  if (document.post === undefined) return false;
183
- else return _userdata.user_id !== -1 && document.post.mode.value === 'reply' && document.post.t !== undefined
183
+ else return _userdata !== undefined && document.post.mode.value === 'reply' && document.post.t !== undefined
184
184
  },
185
185
  getPost: (url) => {
186
186
  return new Promise((resolve, reject) => {
@@ -265,13 +265,15 @@ const FNR = {
265
265
  },
266
266
  getLevel: () => {
267
267
  return new Promise((resolve, reject) => {
268
+ if (_userdata === undefined) resolve('guest');
269
+
268
270
  switch (_userdata.user_level) {
269
271
  case 2:
270
272
  resolve('mod');
271
273
  case 1:
272
274
  resolve('admin');
273
275
  case 0:
274
- return -1 == _userdata.user_id ? resolve('guest') : resolve('user');
276
+ resolve('user');
275
277
  }
276
278
  });
277
279
  },
File without changes
package/general.js CHANGED
File without changes
package/general.min.js CHANGED
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generic-skin",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "Generic Forum Skin for Forumotion created by Gaylien.",
5
5
  "main": "readme.md",
6
6
  "scripts": {
package/pages/ucp.js CHANGED
File without changes
package/pages/ucp.min.js CHANGED
File without changes
File without changes
package/readme.md CHANGED
File without changes
package/stylesheet.css CHANGED
File without changes
File without changes