fixing android build
This commit is contained in:
@@ -5,7 +5,7 @@ import 'package:provider/provider.dart';
|
||||
import 'package:qpay/screens/gateway/gateway_controller.dart';
|
||||
import 'package:qpay/screens/transaction_controller.dart';
|
||||
import 'package:qpay/widgets/step_loading_widget.dart';
|
||||
import 'package:web/web.dart' as web;
|
||||
import 'package:qpay/browser.dart';
|
||||
|
||||
class PollScreen extends StatefulWidget {
|
||||
final String? transactionId;
|
||||
@@ -39,8 +39,8 @@ class _PollScreenState extends State<PollScreen> {
|
||||
// Priority 2: localStorage (for when gateway redirect causes page reload
|
||||
// and the route param path is not available due to hub redirect override)
|
||||
if (transactionId == null && kIsWeb) {
|
||||
transactionId = web.window.localStorage.getItem('pendingTransactionId');
|
||||
web.window.localStorage.removeItem('pendingTransactionId');
|
||||
transactionId = Browser.localStorage.getItem('pendingTransactionId');
|
||||
Browser.localStorage.removeItem('pendingTransactionId');
|
||||
}
|
||||
|
||||
// Priority 3: in-memory confirmation data (normal SPA navigation)
|
||||
|
||||
Reference in New Issue
Block a user