Skip to content

Commit

Permalink
devop: temp disable polkadot wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Oct 9, 2024
1 parent 221a3ef commit c49dc6d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enkryptcom/extension",
"version": "1.44.3",
"version": "1.44.4",
"private": true,
"scripts": {
"zip": "cd dist; zip -r release.zip *;",
Expand Down
6 changes: 6 additions & 0 deletions packages/extension/src/libs/utils/selective-wasm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { createWasm } from "@polkadot/wasm-crypto-init/asm";
import { initBridge } from "@polkadot/wasm-crypto/init";

if (process.env.IS_SAFARI) {
initBridge(createWasm);
}
1 change: 1 addition & 0 deletions packages/extension/src/scripts/chrome/background.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
if (process.env.IS_DEV) {
require("./hot-reload");
}
import "@/libs/utils/selective-wasm";
import {
backgroundOnMessageFromWindow,
backgroundOnMessageFromNewWindow,
Expand Down
1 change: 1 addition & 0 deletions packages/extension/src/ui/action/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import App from "./App.vue";
import router from "./router";
import * as filters from "./utils/filters";
import Vue3Lottie from "vue3-lottie";
import "@/libs/utils/selective-wasm";

const app = createApp(App);

Expand Down
1 change: 1 addition & 0 deletions packages/extension/src/ui/onboard/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import App from "./App.vue";
import { createRouter, createWebHashHistory } from "vue-router";
import routes from "./routes";
import * as filters from "@action/utils/filters";
import "@/libs/utils/selective-wasm";

const router = createRouter({
history: createWebHashHistory(),
Expand Down
1 change: 1 addition & 0 deletions packages/extension/src/ui/provider-pages/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { createRouter, createWebHashHistory } from "vue-router";
import routes from "./routes";
import * as filters from "@action/utils/filters";
import Vue3Lottie from "vue3-lottie";
import "@/libs/utils/selective-wasm";

const router = createRouter({
history: createWebHashHistory(),
Expand Down

1 comment on commit c49dc6d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.