Skip to content

Commit

Permalink
Remove load_data as it becomes automatic
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq committed May 24, 2021
1 parent d7759e7 commit 2404647
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions php/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function hook_article_filter_action($article, $action) {
'TTL' => 600,
];

$this->plugin_host->load_data();
$auth = [
'VAPID' => [
'subject' => 'mailto:[email protected]',
Expand Down Expand Up @@ -173,7 +172,6 @@ function update_subscription() {
}

function set_subscription_for_browser($browser_id_to_subscription) {
$this->plugin_host->load_data();
$subscriptions = $this->plugin_host->get($this, self::SUBSCRIPTION_PROP);
foreach ($browser_id_to_subscription as $browser_id => $subscription) {
if ($subscription === null) {
Expand Down Expand Up @@ -222,7 +220,6 @@ function after() {
}

function get_js() {
$this->plugin_host->load_data();
$this->init_keys();
$publicKey = $this->plugin_host->get($this, self::PUBLIC_KEY_PROP);
return "window.pusherPublicKey='$publicKey';" . file_get_contents(__DIR__ . "/main.js");
Expand Down

0 comments on commit 2404647

Please sign in to comment.