Skip to content

Commit

Permalink
fix: remove hiro ref in page
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Feb 19, 2024
1 parent 3cc8878 commit c49f7e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
8 changes: 4 additions & 4 deletions src/inpage/inpage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ function isValidEvent(event: MessageEvent, method: LegacyMessageToContentScript[
return correctSource && correctMethod && !!data.payload;
}

interface HiroWalletProviderOverrides extends StacksProvider {
isHiroWallet: true;
interface LeatherProviderOverrides extends StacksProvider {
isLeather: true;
}

const provider: HiroWalletProviderOverrides = {
isHiroWallet: true,
const provider: LeatherProviderOverrides = {
isLeather: true,

getURL: async () => {
const { url } = await callAndReceive('getURL');
Expand Down
5 changes: 0 additions & 5 deletions webpack/dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import WebpackDevServer from 'webpack-dev-server';
import config from './webpack.config.dev.js';

const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const WALLET_ENVIRONMENT = process.env.WALLET_ENVIRONMENT;

const HOST = 'localhost';
const PORT = process.env.PORT || '8080';
Expand Down Expand Up @@ -55,10 +54,6 @@ const server = new WebpackDevServer(
compiler
);

// if (WALLET_ENVIRONMENT === 'development' && module.hot) {
// module.hot.accept();
// }

server.startCallback(() => {
console.log('Starting server on http://localhost:8080');
});
11 changes: 2 additions & 9 deletions webpack/webpack.config.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,10 @@ export const config = {
}),

new ProgressBarPlugin(),

...(ANALYZE_BUNDLE ? [new BundleAnalyzerPlugin()] : []),
],
experiments: {
asyncWebAssembly: true,
},
};

// if (IS_PROD) {
// module.exports.plugins.push(
// new CleanWebpackPlugin({ verbose: true, dry: false, cleanStaleWebpackAssets: false })
// );
// }
// if (ANALYZE_BUNDLE) {
// module.exports.plugins.push(new BundleAnalyzerPlugin());
// }

0 comments on commit c49f7e9

Please sign in to comment.