Wix 統合手順
Wix を使用する場合の Pushly のインストール手順
ステップ1: Service Workerをインストールする
import { ok } from 'wix-http-functions';
export function get_ServiceWorker(request) {
let options = {
"headers": {
"Content-Type": "application/javascript",
"Service-Worker-Allowed": "/"
},
"body": "importScripts('https://cdn.p-n.io/pushly-sw.min.js' + (self.location || {}).search || '');"
};
return ok(options);
}
ステップ2: 統合コードスニペットを追加する

最終更新