Skip to content

Instantly share code, notes, and snippets.

@gcaaa31928
Last active April 22, 2019 02:16
Show Gist options
  • Select an option

  • Save gcaaa31928/d7ca896ff62bedc659beb1661b4942ba to your computer and use it in GitHub Desktop.

Select an option

Save gcaaa31928/d7ca896ff62bedc659beb1661b4942ba to your computer and use it in GitHub Desktop.

Revisions

  1. gcaaa31928 revised this gist Apr 22, 2019. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions a.js
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,7 @@ this.pollTaskConfig = {
    method: 'notify',
    version: 1,
    params: {
    action: 'load',
    lastRead: this.lastRead,
    lastSeen: this.lastSeen
    action: 'load',
    },
    scope: this,
    callback: this.onFirstData
  2. gcaaa31928 created this gist Apr 19, 2019.
    14 changes: 14 additions & 0 deletions a.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    this.pollTaskConfig = {
    interval: this.pollingInterval,
    api: 'SYNO.Core.DSMNotify',
    method: 'notify',
    version: 1,
    params: {
    action: 'load',
    lastRead: this.lastRead,
    lastSeen: this.lastSeen
    },
    scope: this,
    callback: this.onFirstData
    };
    this.pollTask = this.addWebAPITask(this.pollTaskConfig).start(true);