Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
fix(injector): adds version to injector url to refresh cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Campaña committed Feb 6, 2019
1 parent 17e9fdb commit 6b9f412
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/class-frontity-injector.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ function generate_injector_string()
} else {
$injector_url = FRONTITY_URL
. 'injector/'
. ($debug_injector ? 'injector.js' : 'injector.min.js');
. ($debug_injector ? 'injector.js' : 'injector.min.js')
. '?ver=' . FRONTITY_VERSION;
}

// Save the injector string in the class property.
self::$injector_string = '<script id="frontity-injector" type="text/javascript">'
. 'window["wp-pwa"]=' . $window_frontity . ';'
Expand Down

0 comments on commit 6b9f412

Please sign in to comment.