You can use the following files to set up scatter without node,
<script src="https://cdn.scattercdn.com/file/scatter-cdn/js/latest/scatterjs-core.min.js"></script>
<script src="https://cdn.scattercdn.com/file/scatter-cdn/js/latest/scatterjs-plugin-eosjs2.min.js"></script>
and below script for simple javascript, to connect to scatter.
const network = ScatterJS.Network.fromJson({
blockchain: 'eos',
chainId: 'e70aaab8997e1dfce58fbfac80cbbb8fecec7b99cf982a9444273cbc64c41473',
host: 'jungle2.cryptolions.io',
port: 80,
protocol: 'http'
});
var scatter;
ScatterJS.plugins(new ScatterEOS());
try {
ScatterJS.scatter.connect(contract).then(connected => {
// User does not have Scatter Desktop, Mobile or Classic installed.
if (!connected) return console.log("Issue Connecting");
scatter = ScatterJS.scatter;
const requiredFields = {
accounts: [network]
};
scatter.getIdentity(requiredFields).then(() => {
_account = scatter.identity.accounts.find(
x => x.blockchain === "eos"
)
})
.catch(error => {
console.log(error);
})
window.ScatterJS = null;
});
}
catch (error) {}
You can also find code example on github